Merge pull request #22 from quoije/cursor/readme-mongodb-info-db57

Readme mongodb info
This commit was merged in pull request #22.
This commit is contained in:
Mathieu Moran
2025-12-21 14:26:18 -05:00
committed by GitHub
+9
View File
@@ -27,4 +27,13 @@ Config those in your .env file:
**MONGO_URI=**`mongodb+srv://USER:[email protected]/?retryWrites=true&w=majority&appName=Cluster69`<br> **MONGO_URI=**`mongodb+srv://USER:[email protected]/?retryWrites=true&w=majority&appName=Cluster69`<br>
**OMDB_API=**`1234567` &nbsp;&nbsp;&nbsp;&nbsp;(for movie info) **OMDB_API=**`1234567` &nbsp;&nbsp;&nbsp;&nbsp;(for movie info)
## Database (MongoDB)
This app uses **MongoDB** via Mongoose. Provide a connection string in `MONGO_URI`.
- Use **MongoDB Atlas** (recommended) or a local MongoDB instance.
- `MONGO_URI` examples:
- Atlas: `mongodb+srv://USER:[email protected]/<dbName>?retryWrites=true&w=majority`
- Local: `mongodb://127.0.0.1:27017/<dbName>`
- Collections are created/managed automatically from the models in `models/` (e.g. `User`, `Movie`, `Setting`, `PlaybackProgress`).
run with **node .\index.js** run with **node .\index.js**