Skip to content

It's a NestJs (NodeJs) RestAPI project (users, books, order, purchase) with JWT Authentication.

Notifications You must be signed in to change notification settings

syedfawzulazim/nestjs_restapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5501f8b · May 5, 2022

History

18 Commits
May 5, 2022
Apr 16, 2022
Apr 16, 2022
Apr 16, 2022
Apr 16, 2022
Apr 16, 2022
Apr 16, 2022
Apr 23, 2022
Apr 16, 2022
Apr 16, 2022
Apr 16, 2022
Apr 16, 2022
Apr 16, 2022

Repository files navigation

It's a NestJs RestAPI project

Ingredients

  • NestJs (NodeJs framework on top of Express)
  • Typescript
  • JWT Authentication
  • MongoDB & Mongoose

Installation

  1. Clone the repo

    $ https://github.com/syedfawzulazim/nestjs_restapi.git
  2. Run with Docker Container

    $ cd [./directory/]
    $ docker build -t [image-name] .
    $ docker run -p 5000:5000 [image-name/image-id]

API Endpoints:

BaseURL: http://localhost:5000

request resource description
GET /api/v1/books returns a list of all the books
POST /api/v1/books inserts a new book and returns success/error message
POST /auth/signup returns jwt access token if signup is successful
POST /auth/signin returns jwt access token if signin is successful
GET /user/orders returns a list of all ordered books by user
POST /user/purchase creates new order and returns newly created order
DELETE /user/delete-order deletes all order of a user
PATCH /user/orders/update/:orderId updates order by order Id

Nest Logo

About

It's a NestJs (NodeJs) RestAPI project (users, books, order, purchase) with JWT Authentication.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published