/mern-stack-example

Mern Stack code for the Mern Tutorial

Primary LanguageJavaScriptApache License 2.0Apache-2.0

mern-stack-example

Mern Stack code for the Mern Tutorial

CI

Disclaimer: The React application works with Node.js 16 and below.

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

Disclaimer

Use at your own risk; not a supported MongoDB product