/CDKDEMO

MongoDB Atlas CDK Demos

Primary LanguagePythonApache License 2.0Apache-2.0

mern-stack-example

Mern Stack code for the Mern Tutorial

CI

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