MERN_Template
Basic npm stuffs:
Server
- express
- mongoose
- morgan
- nodemon (globally installed -g)
- socket.io
- Body-Parser
Client:
- React
- React Router Dom
- 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