A boilerplate for building web app with the MERN stack, inspired by this project by Brad Traversy.
Use the npm package manager to install node modules.
npm install # installs backend node modules
cd client # switch to frontend client directory
npm install # installs frontend node modules
cd .. # return to project root directoryAdd two .json configuration files in the config directory, and save them as default.json and production.json
The configuration files should contain the following:
{
"mongoURI": #Your MongoDB connection URI wrapped in double-quotes
"jwtSecret": #Any string as your JSON web token secret
}MERN Template instructions:
In the project root directory, run this command:
npm run devIn the project root directory, run this command:
heroku create #Create your app on Heroku
git push heroku master #Deploy your app to Heroku
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.