Giter VIP home page Giter VIP logo

digital's Introduction

Backend Developer Project

Clone This Repo

git clone https://github.com/ra463/Digital.git

Create a file named config.env in the config folder and add the following env variable

JWT_SECRET="Your Random JWT Secret"

JWT_EXPIRE="Random days to expire JWT Token"

PORT=4000(Or any port of your choice)

MONGO_URI="Your MongoDB Atlas/local Url to connect to database"

Install all the dependencies by running the command npm install

To run this project simply run the command npm run dev

There are 2 types of Routes:

  • User
  • Book

User API's Endpoint :

B_URL = http://localhost:4000/api/user

  • Register - B_URL/register (Register User) POST
  • Login - B_URL/login (Login User) POST
  • My Profile - B_URL/myprofile (Get My profile) GET
  • Update Password - B_URL/update-password PATCH
  • Update Details - B_URL/update-details PATCH

Book API's Endpoint :

B_URL = http://localhost:4000/api/book

  • Add Book - B_URL/add-book (Admin can add Book) POST
  • Update Book - B_URL/update-book (Update Book Detals) POST
  • Delete Book - B_URL/delete-book/:id DELETE
  • Get All Books - B_URL/get-all-books GET
  • Get Book By Id - B_URL/get-book/:id GET

For role = Admin pls change the role of user manually after registering user from database

digital's People

Contributors

ra463 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.