- You should have ruby and postgresql
bundle install
- Copy default.env.rb to .env.rb
sudo -u postgres psql
create user seq with password 'seq' createdb;
create database seq_test owner seq;
create database seq_development owner seq;
rake dev_up
rake test_up
rake fill_data
rackup
After that you can make request like
http://localhost:9292/main/disbursements?year=2018&month=1&day=1
http://localhost:9292/main/disbursements/3?year=2018&month=1&day=1
If you want to access console you can use
rake dev_irb
#{APP}_DATABASE_URL :: database connection URL to give to Sequel, default is to create one based on the application's name and RACK_ENV. #{APP}_SESSION_SECRET :: cookie session secret, must be >=64 bytes RACK_ENV :: environment to use (production, development, or test), defaults to development.
To run the specs for the application after running rake test_up
you can just simply write rake