- (optional) Update VirtualBox Guest Additions
vagrant plugin install vagrant-vbguest
- Set up the environment variables
cp .env.example .env
- Open
.env
in your favorite text editor and fill in the appropriate values - Initialize the database
vagrant up
vagrant ssh
docker-compose up -d
docker-compose run api rake db:create db:migrate db:seed
vagrant up
vagrant ssh
docker-compose up
Changes made to the public/app/client
directory should automatically be detected and presented on a browser refresh
- Install gems: pg
- Mechanize gem
- Write Scraper
- For Prototype: store data to file
- Use db seed for easy collaboration
- Setup Foundation in public/app
- For Prototype: keep in public, but can be moved as needed for prod
-
Generate model
rails g model loan sale_id:string site_name:string date_sold:date loan_type:string quality:string number_of_loans:integer book_value:integer sales_price:integer winning_bidder:string address:string
-
Generate controller
rails g controller loans
-
Setup JSONAPI (https://github.com/doga/jsonapi_for_rails)
-
Write API tests
-
Test read
-
Test read only (not delete/post/patch)
rspec
rake cucumber