Skip to main content

home

Home​

POWr Wiki

Welcome to POWr wiki. Here are few things you will need to know/setup before you get started with the project.

Environment Setup​

I highly recommend thoughtbot/laptop which helps setup your dev environment with all the necessary languages, frameworks, version managers and cli tools. after the installation is complete, please follow 👇 instructions.

Install Ruby​

$ brew install/upgrade rbenv
$ brew install/upgrade ruby-build
$ rbenv install 2.3.1

Databases​

Setting Up Postgres​

$ createuser -s powr -h localhost // Select 'Y' for superuser access

To connect to postgres using psql

$ psql -h localhost -d postgres

Setting Up Database​

$ rake db:create
$ rake db:migrate # Do not run rake db:schema:load
$ rake db:seed

If it fails, please comment out routes.rb, dynamic_router.rb, and lines 133-152 of development.rb and try it again.

Environment Variables​

Please create config/application.yml, contact other engineers for local ENV Variables.

Code / Architecture​

This is a standard rails application, please follow the opinions and architectures defined by rails and its community. Here are few need to know things:-

  • [[Model]]

  • [[View (Javascript / CSS / HTML)]]

  • [[Controller]]

  • [[Routes]]

  • [[Interactors]]

  • [[Serializers]]

  • [[Migrations]]

Style Guide​

Please follow these code Styleguides

Workflows​

  • [[Github Flow]]
  • [[Trello]]
  • [[Specs]]
  • [[Code Review]]
  • [[Deployments]]

Priorities​

  1. ✓ Production Bugs (Mission Critical ones)
  2. ✓ Project Assigned to you on Trello
  3. ✓ POWr Hour Tasks
  4. ✓ Bugsnag Bugs

Others​