Jumpstart Labs Assignment Link - Original assignment page for the project.
Traffic Spy is an application that keeps track of various statistics related to user access of various websites. Our app uses a Sinatra controller, an ActiveRecord database interface, and a Postgres database.
Our main goals for the project were to become familiar with both Sinatra, HTTP requests, and ActiveRecord, as well as become more comfortable with Git workflow and Waffle.io as a workflow management tool
Our app responds to post requests sent from the terminal. Follow the instructions below to use:
- Run
./setup.sh
. - Run
shotgun
to start the app. - Run
./test.sh
to run sample curl commands. This will populate the db with sample web traffic data. - Run
rake test
to run test suite.
- drop the db
- create table in new migration
- in new migration, add foreign key for new table to payload table
- add has_many and belongs_to or other relationships to payload and new model
- add your table to params_converter.rb
- add your table to payload handler in #run_child_tables