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
This is a full-stack movie browsing application built with Express.js and Next.js, demonstrating MongoDB operations using the `sample_mflix` dataset. The application showcases CRUD operations, aggregations, and MongoDB Search using the native MongoDB Node.js driver.
4
4
@@ -27,6 +27,16 @@ The `sample_mflix` dataset contains movies released up to **2016**. Searching fo
27
27
-**Voyage AI API key** (For MongoDB Vector Search)
28
28
-[Get a Voyage AI API key](https://www.voyageai.com/)
29
29
30
+
## Verify Requirements
31
+
32
+
Before getting started, run the verification script to check if you have the required runtime:
33
+
34
+
```bash
35
+
./check-requirements-js.sh --pre
36
+
```
37
+
38
+
This checks that Node.js and npm are installed with the correct versions. Run with `--help` for more options.
39
+
30
40
## Getting Started
31
41
32
42
### 1. Configure the Backend
@@ -61,7 +71,7 @@ NODE_ENV=development
61
71
# CORS Configuration
62
72
# Allowed origin for cross-origin requests (frontend URL)
63
73
# For multiple origins, separate with commas
64
-
CORS_ORIGIN=http://localhost:3000
74
+
CORS_ORIGINS=http://localhost:3000
65
75
66
76
# Optional: Enable MongoDB Search tests
67
77
# Uncomment the following line to enable Search tests
@@ -89,7 +99,6 @@ From the `server` directory, run:
89
99
npm run dev
90
100
```
91
101
92
-
93
102
Or for production mode, run:
94
103
95
104
```bash
@@ -98,6 +107,7 @@ npm start
98
107
```
99
108
100
109
The server will start on `http://localhost:3001`. You can verify it's running by visiting:
110
+
101
111
- API root: http://localhost:3001/
102
112
- API documentation (Swagger UI): http://localhost:3001/api-docs
103
113
@@ -126,6 +136,7 @@ The Next.js application will start on `http://localhost:3000`.
0 commit comments