Project is built using the following:
- Ruby
- Active Record
- SQLite3
Database is setup to use the following seed data:
- 50 Members
- 200 Randomized Checkout History Records
- 25 Curent Checkouts
- 100 Library Books With Accurate Author and ISBN Information
Enter the following commands to setup the database with the seed data:
- Run bundle install
- Run bundle exec rake db:migrate db:seed
Enter the following command to launch the backend server on port 9292:
- bundle exec rake server
Fetch requests are routed to: http://localhost:9292
GET /checkouts
DELETE /checkouts/:id
GET /books and books/:id
POST /books
PATCH /books/:id -limited to is_checked_out boolean
GET /members and members/:id
POST /members
PATCH /members/:id
DELETE /members/:id
GET /authors
GET /genres
Enter the following commands to reset the database and seed data:
- bundle exec rake db:purge
- bundle exec rake db:migrate db:seed