From b2882e01d20aac981f638b2fc09588f55022cb5e Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 21 Dec 2025 19:25:48 +0000 Subject: [PATCH] Add MongoDB database section to README Co-authored-by: mathieumoran1 --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 6c6f2c1..429591f 100644 --- a/README.md +++ b/README.md @@ -27,4 +27,13 @@ Config those in your .env file: **MONGO_URI=**`mongodb+srv://USER:PASS@cluster0.XXXX.mongodb.net/?retryWrites=true&w=majority&appName=Cluster69`
**OMDB_API=**`1234567`     (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:PASS@cluster0.XXXX.mongodb.net/?retryWrites=true&w=majority` + - Local: `mongodb://127.0.0.1:27017/` +- Collections are created/managed automatically from the models in `models/` (e.g. `User`, `Movie`, `Setting`, `PlaybackProgress`). + run with **node .\index.js** -- 2.54.0