-
Notifications
You must be signed in to change notification settings - Fork 8
Dev environment setup
messick edited this page Aug 3, 2016
·
6 revisions
Drive the Vote is a Rails 5 app, using:
- a Postgres data store
- Sidekiq/redis for asynchronous jobs
- RSpec tests
- Haml/Sass templates & CSS
- Bootstrap JS/CSS framework
- Install RVM or your favorite ruby manager
-
rvm install 2.2.5or similar. Use 2.2.x for parity with production - Install homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install gcc redis postgres- Follow homebrew instructions to auto-start redis and postgres at login.
- Open
/etc/hostsand add the line127.0.0.1 local.drive.vote
- Clone drive.vote
cd drive.vote- Set up a local .env file
- Install bundler:
gem install bundler - Bundle gems:
bundle install - Set up local db:
- Create db user:
createuser -drs postgres bundle exec rake db:createbundle exec rake db:migrate- Run dev server:
rails s
- Add following to .env file:
SEND_GRID_USER_NAME=XXX # Only required for sending emails
SEND_GRID_PASSWORD=XXX # Only required for sending emails- In separate terminal, run Sidekiq:
bundle exec sidekiq
- How to create a local user with admin privileges
- Style guidelines
- Policy for commits, PRs, code review, etc