Skip to content

Rezwanul777/MERN-PROJECT-ECOMMERCE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce Project in MERN STACK

Environment setup

Project setup

Express server setup

using for development pusrpose nodemon: npm i --save-dev nodemon.

to server run pls command "npm run dev" in terminal.

for tracking HTTP request logger middleware for node.js use package morgan:"npm install --save-dev morgan".

HTTP error handeling-- npm i http-error

Node.js Connect middleware to sanitize user input coming from POST body, GET queries, and url params, use :"npm install xss-clean --save".

Basic rate limit for nice with express-slow-down. use:"npm i express-rate-limit"

SET UP ENV variable. use :"npm i dotenv"

MVC pattern implement

Mongo db database connection through packege install :"npm i mongoose"

Schema and model creation

node.bcrypt.js-A library to help you hash passwords. use "npm install bcrypt"

seed api create and insert data base.

user search, filter and pagination create.

create respnse handelers

get single user by id-- here i have handled mongoose error for invalid mongoose id.

how to create service for single user.

About

THIS PROJECT BASED ON MERN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published