Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 1 day 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T19:02:05.000Z (5 months ago)
- Last Synced: 2024-12-14T01:05:01.906Z (9 days ago)
- Topics: express, expressjs, javascript, mongodb, nodejs, react
- Language: JavaScript
- Homepage:
- Size: 771 KB
- Stars: 324
- Watchers: 15
- Forks: 283
- 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)[![CI](https://github.com/mongodb-developer/mern-stack-example/actions/workflows/main.yaml/badge.svg)](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