https://github.com/mongodb-developer/mern-stack-example
Mern Stack code for the Mern Tutorial
https://github.com/mongodb-developer/mern-stack-example
express expressjs javascript mongodb nodejs react
Last synced: about 1 month ago
JSON representation
Mern Stack code for the Mern Tutorial
- Host: GitHub
- URL: https://github.com/mongodb-developer/mern-stack-example
- Owner: mongodb-developer
- License: apache-2.0
- Created: 2021-05-03T13:21:33.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T19:02:05.000Z (10 months ago)
- Last Synced: 2025-03-28T05:09:45.530Z (about 1 month ago)
- Topics: express, expressjs, javascript, mongodb, nodejs, react
- Language: JavaScript
- Homepage:
- Size: 771 KB
- Stars: 358
- Watchers: 14
- Forks: 306
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mern-stack-example
Mern Stack code for the [Mern Tutorial](https://www.mongodb.com/languages/mern-stack-tutorial)[](https://github.com/mongodb-developer/mern-stack-example/actions/workflows/main.yaml)
## How To Run
Create the file `mern/server/config.env` with your Atlas URI and the server port:
```
ATLAS_URI=mongodb+srv://:@sandbox.jadwj.mongodb.net/
PORT=5050
```Start server:
```
cd mern/server
npm install
npm start
```Start Web server
```
cd mern/client
npm install
npm run dev
```## Disclaimer
Use at your own risk; not a supported MongoDB product