npm-mern-template is an npm package offering a pre-configured MERN (MongoDB, Express.js, React.js, Node.js) stack template. It streamlines web development by providing a ready-to-use backend server, React frontend, and MongoDB integration. Developers can quickly kickstart their MERN projects and focus on building feature-rich applications.
To use the script, follow these steps:
sudo npm install npm-mern-template
npm-mern-template
cd server && cd config
nano default.json
{
"PORT": 5000,
"URL": "PROJECT-URL",
"EMAIL_SMTP": {
"HOST": "Your Host",
"AUTH": {
"USER": "USERNAME",
"PASS": "PASSWORD"
},
"PORT": 465
},
"SEND_SMS": {
"TWILIO_SID": "ACbXXXXXXXXXXXXXXXXXXXXXXXX",
"TWILIO_TOKEN": "c42XXXXXXXXXXXXXXXXXXXXXXXXXXX",
"TWILIO_NUMBER": "+14XXXXXXXXXX"
},
"DB_URI": "MONGODURI"
}
# For React Client
cd client && npm start
#For Express Server
cd server && npm start