A library management software with multi-role user support.
git clone https://github.com/dev-subhadeep/boibili.git
cd boibili/server/
npm install
DB_URI=YOUR-DATABASE-URI
DB_NAME=YOUR=DATABASE-NAME
JWT_PK=YOUR-SUPERSECRET-PASSKEY
PORT=PORT-NUMBER
npm start
All of these need to be preceded by
/api/v1
POST request with username
and password
as JSON data to
/user/
GET request with username
and password
as JSON data to
/user/
Note: This will provide a token that you need to add as header under Authorisation as Bearer token
GET request to
/books/
Each page gives you 10 books. To get the next 10 use the page parameter
/books?page=2
GET request to
/books/<id-of-the-book>
POST request to
/books/
Required fields:
title
,author
,isbn
,description
,publish_date
PATCH request to
/books/<id-of-the-book>
DELETE request to
/books/<id-of-the-book>