Giter Site home page Giter Site logo

boibili's Introduction

boibili

A library management software with multi-role user support.

Installation Guide

Step 1: Clone this repository

git clone https://github.com/dev-subhadeep/boibili.git

Step 2: Go inside the 'server' folder

cd boibili/server/

Step 3: Install the required packages

npm install

Step 4: Create a .env file in the server folder with the following content

DB_URI=YOUR-DATABASE-URI
DB_NAME=YOUR=DATABASE-NAME
JWT_PK=YOUR-SUPERSECRET-PASSKEY
PORT=PORT-NUMBER

Step 5: Start the server

npm start

API Endpoings

All of these need to be preceded by

/api/v1

Register a user

POST request with username and password as JSON data to

/user/

Login a 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

Getting a list of books (publicly accessible)

GET request to

/books/

Each page gives you 10 books. To get the next 10 use the page parameter

/books?page=2

Getting the data of a single book

GET request to

/books/<id-of-the-book>

Adding a book (must be logged in)

POST request to

/books/

Required fields: title, author, isbn, description, publish_date

Updating a book (must be logged in)

PATCH request to

/books/<id-of-the-book>

Delete a book (must be logged in)

DELETE request to

/books/<id-of-the-book>

All updates will be pushed to v2 branch hence forward

boibili's People

Contributors

dev-subhadeep 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.