@@ -22,7 +22,7 @@ This is a full-stack movie browsing application built with Python FastAPI and Ne
2222- ** Python 3.10** to ** Python 3.13**
2323- ** Node.js 20** or higher
2424- ** MongoDB Atlas cluster or local deployment** with the ` sample_mflix ` dataset loaded
25- - [ Load sample data] ( https://www.mongodb.com/docs/atlas/sample-data/ )
25+ - [ Load sample data] ( https://www.mongodb.com/docs/atlas/sample-data/ )
2626- ** pip** for Python package management
2727- ** Voyage AI API key** (For MongoDB Vector Search)
2828 - [ Get a Voyage AI API key] ( https://www.voyageai.com/ )
@@ -56,7 +56,7 @@ VOYAGE_API_KEY=your_voyage_api_key
5656
5757# CORS Configuration
5858# Comma-separated list of allowed origins for CORS
59- CORS_ORIGINS=http://localhost:3000,http://localhost:8000
59+ CORS_ORIGINS=http://localhost:3000,http://localhost:3001
6060```
6161
6262** Note:** Replace ` username ` , ` password ` , and ` cluster ` with your actual MongoDB Atlas
@@ -69,7 +69,7 @@ python -m venv .venv
6969```
7070
7171Activate the virtual environment:
72-
72+
7373``` bash
7474source .venv/bin/activate
7575```
@@ -85,12 +85,13 @@ pip install -r requirements.txt
8585From the ` server/ ` directory, run:
8686
8787``` bash
88- fastapi dev main.py --reload
88+ uvicorn main:app --reload --port 3001
8989```
9090
91- The server will start on ` http://localhost:8000 ` . You can verify it's running by visiting:
92- - API root: http://localhost:8000/api/movies
93- - API documentation (Swagger UI): http://localhost:8000/docs
91+ The server will start on ` http://localhost:3001 ` . You can verify it's running by visiting:
92+ - API root: http://localhost:3001/api/movies
93+ - API documentation (Swagger UI): http://localhost:3001/docs
94+ - Interactive API documentation (ReDoc): http://localhost:3001/redoc
9495
9596### 3. Configure and Start the Frontend
9697
@@ -118,8 +119,8 @@ The Next.js application will start on `http://localhost:3000`.
118119
119120Open your browser and navigate to:
120121- ** Frontend:** http://localhost:3000
121- - ** Backend API:** http://localhost:8000
122- - ** API Documentation:** http://localhost:8000 /docs
122+ - ** Backend API:** http://localhost:3001
123+ - ** API Documentation:** http://localhost:3001 /docs
123124
124125## Features
125126
@@ -204,4 +205,3 @@ If you have problems running the sample app, please check the following:
204205If you have verified the above and still have issues, please
205206[ open an issue] ( https://github.com/mongodb/docs-sample-apps/issues/new/choose )
206207on the source repository ` mongodb/docs-sample-apps ` .
207-
0 commit comments