Coder Social home page Coder Social logo

library-manager-backend's Introduction

Library Manager - Backend

Project Overview

Project is built using the following:

  • Ruby
  • Active Record
  • SQLite3

Database Overview

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

Database Relations

ERD

Database Installation

Enter the following commands to setup the database with the seed data:

  1. Run bundle install
  2. Run bundle exec rake db:migrate db:seed

Launching Backend Server

Enter the following command to launch the backend server on port 9292:

  • bundle exec rake server

Routes

Fetch requests are routed to: http://localhost:9292

Checkouts - CRUD: Read, Delete

GET /checkouts
DELETE /checkouts/:id

Books - CRUD: Create, Read, Update

GET /books and books/:id
POST /books
PATCH /books/:id -limited to is_checked_out boolean

Members - CRUD: Create, Read, Update, Delete

GET /members and members/:id
POST /members
PATCH /members/:id
DELETE /members/:id

Authors - CRUD: Read

GET /authors

Genres - CRUD: Read

GET /genres

Notes

Enter the following commands to reset the database and seed data:

  1. bundle exec rake db:purge
  2. bundle exec rake db:migrate db:seed

library-manager-backend's People

Contributors

ksalguera avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.