Probability-calibrated comparison of many alternatives
- Register a new (development) GitHub OAuth application
- Set the GitHub OAuth application's authorization callback URL to
http://localhost:3000/app/
- Copy your application's client ID and client secret into two new environment variables:
FORKSINTHEROAD_GITHUB_DEV_CLIENT_ID
andFORKSINTHEROAD_GITHUB_DEV_CLIENT_SECRET
- Install Ruby
- Run
gem install bundler
to install project gem manager - Run
bundler install --without production
to install project gems - Run
bin/overcommit --install
to enable Git hooks - Run
bin/rails db:migrate
to set up the database - Run
bin/rails server
to start up Rails - Visit http://localhost:3000 to view the app
- Run
bin/guard
to start continuous testing - Change a source or test file, and the relevant tests will run automatically
- Run
bin/rubocop
to check all Ruby style/patterns - Run
bin/rails server
to start up Rails - Visit http://localhost:3000 to view the app
- Run
bin/webpack-dev-server
to start incremental JavaScript/Sass compilation - In another terminal, run
bin/rails server
to start up Rails - Visit http://localhost:3000 to view the app
- Change a source file, and the app will reload automatically
- Run
yarn eslint-all
to check all JavaScript style/patterns - Run
yarn eslint-all --fix
to reformat all JavaScript code - Run
yarn sass-lint-all
to check all Sass style/patterns
- Install Heroku CLI tools
- Run
heroku create
to initialize the Heroku app - (Optional) Run
heroku apps:rename NEWNAME
to rename your app - Register a new (production) GitHub OAuth application
- Set the GitHub OAuth application's authorization callback URL to the root URL of your Heroku app (e.g.
https://powerful-oasis-50094.herokuapp.com/app/
) - Set Heroku config vars for your application's client ID and client secret:
heroku config:set FORKSINTHEROAD_GITHUB_PROD_CLIENT_ID=x
andheroku config:set FORKSINTHEROAD_GITHUB_PROD_CLIENT_SECRET=x
- Run
git push heroku master
to push code to the Heroku app - Run
heroku run rails db:migrate
to set up the database - Run
heroku open
to visit the website
This project is released under the MIT License (see LICENSE.md for details).