Giter Site home page Giter Site logo

api_booklending's Introduction

Book Lending API

Backend API for Book Lending application

Usage

Add a .env file with the following:

SECRET_COOKIE=your-secret
JWT_SECRET=your-secret
CLOUDINARY_URL=your-cloudinary-url
MONGO_URI=your-mongo-uri
MAILTRAP_USER=your-username
MAILTRAP_PASS=your-password

Demo

The API is live at Swagger.io

  • Version: 1.0.0
  • Author: Tuong Huynh

Functionality

CRUD Books

  • Show all books
    • Search books by Title
    • Pagination
  • Show a book
  • Add book (Require Admin)
  • Update book (Require Admin)
  • Delete book (Require Admin)

CRUD Users (Require Admin)

  • Show all users
    • Search users by Name
    • Pagination
  • Add user
  • Show user
  • Update user
  • Delete user

CRUD Transactions - Borrow Books (Require Auth)

  • Show transactions
    • Show transactions by User (Show all transactions if Admin)
    • Search transactions by Id
    • Pagination
  • Show transaction (If user is not own this transaction, don't show)
  • Add transaction (Require Admin)
  • Update transaction (Require Admin)
  • Delete transaction (Require Admin)
  • Make finished (Require Admin)

Authentication

  • Register (Unique email)
  • Login (JWT Token)

Profile (Require Auth)

  • Get user info
  • Update info (name, phone)
  • Update avatar
  • Change password

Add To Cart

  • Add to cart
  • Change quantity (decrease button, increase button, input number)
  • Make transaction from cart (Require Auth)
  • Auto delete items in cart after made transaction

api_booklending's People

Contributors

huynhdieutuong avatar

Watchers

James Cloos avatar  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.