This is a boilerplate to build a full stack web application using React, Node.js, Express and Webpack. It is also configured with webpack-dev-server, log4js, eslint, prettier and babel.
# Clone the repository
git clone https://github.com/suhail339/MERN-Boiler-Plate.git
# Go inside the directory
cd MERN-Boiler-Plate
# Install dependencies
yarn (or npm install)
# Start development server
yarn dev (or npm run dev)
# Build for production
yarn build (or npm run build)
# Start production server
yarn start (or npm start)-
Install VSCode
-
Install ESLint extension
-
Install Prettier extension
-
Modify the VSCode user settings to add below configuration
"eslint.alwaysShowStatus": true, "eslint.autoFixOnSave": true, "editor.formatOnSave": true, "prettier.eslintIntegration": true
Above, we have modified editor configurations. Alternatively, this can be configured at the project level by following this article.