mern-stack-example
Mern Stack code for the Mern Tutorial
How To Run
Create an Atlas URI connection parameter in mern/server/config.env with your Atlas URI:
ATLAS_URI=mongodb+srv://<username>:<password>@sandbox.jadwj.mongodb.net/myFirstDatabase?retryWrites=true&w=majority
PORT=5000
Start server:
cd mern/server
npm install
npm start
Start Web server
cd mern/client
npm install
npm start
How To Test
For Unit tests run:
npm test tests/api.unit.test.js
For Integration tests run:
npm test tests/api.integ.test.js
Disclaimer
Use at your own risk; not a supported MongoDB product