My MERN Stack Boilerplate
- Download or clone this repo.
- Add
keys_dev.js
file in config folder with the following structure.
module.exports = {
mongoURI: 'YOUR_MONGO_URI',
secretOrKey: 'YOUR_SECRET_KEY'
};
- Install Back-end Dependencies.
yarn
- Install Front-end Dependencies.
yarn run client-install
- Run Development Server.
yarn run dev
- To run only Back-end Server.
yarn run server
- To run only Front-end Server.
yarn run client
routes/api
folder contains user Registration and Login Routes.config
folder contains keys and Passport Google Strategy.utils
folder contains utility functions for input validation.- Sass / SCSS is used for styling.