- Deploying an Application to Heroku
- Using environment variables to configure your application
- Using feature tests to guide your development
Your mission, and you choose to accept it, is to get a very small todo list app deployed to Heroku.
- Fork this repository to one of your personal github account
- Make all the features pass
- Push it to heroku
- Submit a pull request to this repository for your peers to review. Include a link to your production app in the pull request.
- Do NOT merge these pull requests :).
- Review other peoples code. Do NOT merge their pull requests.
- Add more features if you have time
There are two features in this amazingly powerful todopplication:
- Guest may create TODO
- Guest may complete TODO
- Open
spec/features/guest_may_create_todo_spec.rb
- Change one line that says
xscenario
to sayscenario
- Run the tests
- Make that test pass
- Commit
- Repeat until all scenarios are passing
- Verify through the UI the feature works
- Push to Heroku
- Open
spec/features/guest_may_complete_todo_spec.rb
- Change one line that says
xscenario
to sayscenario
- Run the tests
- Make that test pass
- Commit
- Repeat until all scenarios are passing
- Verify through the UI the feature works
- Push to Heroku
- Heroku and Ruby
- Heroku and Sinatra
- Heroku Config Variables
- Creating a Table With Active Record Migrations
- Interacting with Forms in Capybara
- Clicking Links or Buttons with Capybara
- Creating and Handling Forms with Sinatra
- Run
rake
orrake spec
to run the tests - Run
shotgun
to run the app locally - Run
rake db:create_migration NAME=name_of_migration
to create a migraton - Run
rake db:migrate
to run the migrations - Run
irb -r ./todo_app.rb
to get to a console
git push heroku
pushes the master branch to herokuheroku run rake db:migrate
migrates the database on heroku