A Simple MERN Stack Boilerplate To Get Started Fast For Development
Enter "npm start" or "yarn start" to get started.
This Boilerplate is built using MERN stack
- M - MongoDB
- E - ExpressJS
- R - ReactJS
- N - NodeJS
1. Added Webpack Configuration For Hot Reloading - Client Side
2. Added Nodemon for auto-loading - Server Side
3. Added Concurrently For Simultaneously Running Client and Server
- Create a ".env" file in the server directory of your project
- In that file place the following line
module.exports = {
mongoURI: "Your Connection String Here"
};
- Eg:-
mongoURI: 'mongodb://127.0.0.1/my_mern'
To get started, Clone this repo
git clone https://github.com/arravind-r/simple-mern-stack.git
cd simple-mern-stack
"npm install" or "yarn install"
Then to install node_modules npm run server
in root folder.
And for client side, change the directory into client and run install.
cd client
"npm install" or "yarn install"
After installing the node_modules in "client" folder, go back to main or root directory
cd ..
##Final Step Finally run the below command to see it in action
"npm run start:dev"
or
"yarn run start:dev"
HELP NOTE: If any of you could help improve this boilerplate, please do.