This is the courseware for Nashville Software School.
- Copy
config/application.yml.example
toconfig/application.yml
- Copy
config/database.yml.example
toconfig/database.yml
- Fill in the correct Github API key and a valid Github access token (see below)
rake db:create:all
rake db:migrate
- Copy a valid
github_access_token
from a local User (e.g. from logging in on localhost, then inspecting the user in the rails console) and save it asGITHUB_ACCESS_TOKEN
in application.yml. rake
- Confirm that rake passed. If it didn't, that means your setup is missing something.
Run the Rails server with puma
.
- phantomjs
- imagemagick
Either get them from Eliza, or set up your own keys, as below:
- Go to https://github.com/settings/applications and create an application
- Homepage URL: http://localhost:3000
- Authorization callback URL: http://localhost:3000/users/auth/github/callback
- Copy the application keys into your application.yml:
- Client ID = GITHUB_CLIENT_ID
- Client Secret = GITHUB_CLIENT_SECRET
- Get Eliza to add you to heroku
git remote add heroku <heroku_git_url>
git push heroku master
heroku run rake db:migrate
heroku logs --tail
heroku create inquizator
git push heroku master
- You may need to run
heroku keys:add
before you can push
- You may need to run
heroku run rake db:migrate
heroku set KEY=VALUE
for all necessary environment variables. The full list of necessary environment variables is in application.yml.example
git push heroku master
heroku run rake db:migrate
Resources from previous cohorts of the software development course:
- https://education.github.com/guide
- http://planbookedu.com/planbooks/view/pk:XRSD8
- https://canvas.instructure.com/courses/790528
- http://www.volunteerspot.com/login/entry/135623132021#/form
https://hud.iron.io/tq/projects/53594f0efaed5a000900008e/get_started#