shaw8wit / bookies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Bookies

A place to buy, rent and avail various offers on books. Special priveledges for admin and library card holder.

Getting Started

  • Clone or extract the repo locally
  • Install entity framework if not done so already
  • enable-migrations from package manager console if migrations are not enabled
  • Run migrations and update database with update-database
  • Build and run the project using Ctrl + F5
  • In case of database error Delete and Add App_Data to root directory of the repo and update database

Specifications

  • Used the MVC structure for the working of the project
  • Create user and admin user and buy and rent books
  • Admins can add and delete books
  • Library Card feature will let you rent books for free
  • Anonymous users can view the books and offers
  • API's available for external support
  • User profile will show all the purchase history and account info

API's

Api endpoints should be prefixed by api/

/genre
Genre model
GET
Fetch all Genres
POST
Add Genre
PUT/{id}
Update Genre with specified id from uri
DELETE/{id}
Delete Genre with specified id from uri
/author
Author model
GET
Fetch all Authors
POST
Add Author
PUT/{id}
Update Author with specified id from uri
DELETE/{id}
Delete Author with specified id from uri
/book
Book model
GET
Fetch all Books
POST
Add Book
PUT/{id}
Update Book with specified id from uri
DELETE/{id}
Delete Book with specified id from uri
/rents
Rent model
GET
Fetch all Rents
POST
Add Rents
PUT/{id}
Update Rents with specified id from uri
DELETE/{id}
Delete Rents with specified id from uri
/sales
Sale model
GET
Fetch all Sales
POST
Add Sales
PUT/{id}
Update Sales with specified id from uri
DELETE/{id}
Delete Sales with specified id from uri

About


Languages

Language:JavaScript 55.3%Language:C# 23.1%Language:HTML 21.5%Language:CSS 0.1%Language:ASP.NET 0.0%