/MERN_Template

Basic MERN template/Boilerplate

Primary LanguageJavaScript

MERN_Template

Basic npm stuffs:

Server

  1. express
  2. mongoose
  3. morgan
  4. nodemon (globally installed -g)
  5. socket.io
  6. Body-Parser

Client:

  1. React
  2. React Router Dom
  3. Bootstrap/Fontawesome (cdn)

npm modules

Modules Description
Express Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.
Mongoose Mongoose provides a straight-forward, schema-based solution to model your application data. It includes built-in type casting, validation, query building, business logic hooks and more, out of the box.
morgan HTTP request logger middleware for node.js
Body-parser Parse incoming request bodies in a middleware before your handlers, available under the req.body property.
socket.io Socket.IO enables real-time, bidirectional and event-based communication.
dotenv Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env.

Working

clone it

$ npm install

$ npm start

Note

All the unwanted dependencies just uninstall

For authentication, cookie Parser, Passportjs(any strategy) can be installed