You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit faeced5
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+32-30Lines changed: 32 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,11 @@ A full-stack CRUD application built with MongoDB, Express, React, and Node.js (M
5
5
Companion code for the [MERN Stack Tutorial](https://www.mongodb.com/languages/mern-stack-tutorial?utm_campaign=devrel&utm_medium=github&utm_content=mern.stack.example&utm_term=learning.fuel) and [video walkthrough](https://www.youtube.com/watch?v=4nKWREmCvsE).
If you're running the database locally in the devcontainer, keep the configured connection string.
82
-
83
-
You may also connect to an Atlas cluster. If you're new to Atlas, follow the [quick start guide](https://www.mongodb.com/docs/atlas/getting-started/?utm_campaign=devrel&utm_medium=github&utm_content=mern.stack.example&utm_term=learning.fuel) and then update `ATLAS_URI` with your connection string.
80
+
If you are new to Atlas, use the [Atlas quick start guide](https://www.mongodb.com/docs/atlas/getting-started/?utm_campaign=devrel&utm_medium=github&utm_content=mern.stack.example&utm_term=learning.fuel) and then paste your connection string into `ATLAS_URI`.
84
81
85
-
### Seed sample data (optional)
82
+
Optional: seed sample data:
86
83
87
84
```bash
88
-
cd mern/server
89
-
node seed.js
85
+
cd mern/server && node seed.js
90
86
```
91
87
92
-
### Run services
93
-
94
-
Backend:
88
+
Start the backend API:
95
89
96
90
```bash
97
91
cd mern/server
98
92
npm install
99
93
npm start
100
94
```
101
95
102
-
Frontend:
96
+
Start the frontend in a second terminal:
103
97
104
98
```bash
105
99
cd mern/client
100
+
npm install
106
101
npm run dev
107
102
```
108
103
104
+
Open `http://localhost:5173`.
105
+
109
106
## GitHub Codespaces and Dev Containers
110
107
111
108
GitHub Codespaces is an easy and fast way to get this project running without installing anything locally. It uses a dev container, which is a Docker environment configured for development.
@@ -167,6 +164,11 @@ Example request body for create or update:
167
164
168
165
- Change `PORT` in `mern/server/config.env`, or stop the process using `:5050`
169
166
167
+
## Community and Support
168
+
169
+
- Use [GitHub Issues](https://github.com/mongodb-developer/mern-stack-example/issues) for bugs and feature requests
170
+
- Use [MongoDB Community Forums](https://www.mongodb.com/community/forums/) for general MongoDB questions
0 commit comments