Skip to content

naveenverma1/ecommerce-api-nodejs

Repository files navigation

ecommerce-epi-nodejs

Getting started

git clone https://github.com/naveenverma1/ecommerce-api-nodejs.git

npm install

node server.js --- to start

Then take a look at http://localhost:3000/.

JWT (JSON web tokens) authentication (decode/encode) - Login middleware

Admin and user API

product-categories API(Get and Post).

Products API (Get and Post) with Aggregation.

Cart API(Get and Post) - when the user adds the product to the cart and if it remains idle for 1hour it will auto-deleted from the cart(with the help of cron npm).

modules used:- Joi, Bcrypt, Swagger, Multer, cors, express, mongoose-paginate, mongoose, dotenv, cron.