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
Copy file name to clipboardExpand all lines: mflix/README-JAVA-SPRING.md
+131-5Lines changed: 131 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,142 @@
1
1
# Java Spring Boot MongoDB Sample MFlix Application
2
2
3
-
[TODO: Add intro]
3
+
This is a full-stack movie browsing application built with Java Spring Boot and Next.js, demonstrating MongoDB operations using the `sample_mflix` dataset. The application showcases CRUD operations, aggregations, and MongoDB Search using Spring Data MongoDB.
4
+
5
+
## Project Structure
4
6
5
7
```
6
-
├── README.md
7
-
├── client/ # Next.js frontend
8
-
└── server/ # Java Spring backend
8
+
├── README-JAVA-SPRING.md
9
+
├── client/ # Next.js frontend (TypeScript)
10
+
└── server/java-spring/ # Java Spring Boot backend
11
+
├── src/
12
+
├── pom.xml
13
+
├── .env.example
14
+
└── mvnw
9
15
```
10
16
17
+
## Prerequisites
18
+
19
+
-**Java 21** or higher
20
+
-**Node.js 20** or higher
21
+
-**MongoDB Atlas account** with the `sample_mflix` dataset loaded
22
+
-[Load sample data](https://www.mongodb.com/docs/atlas/sample-data/) in your Atlas cluster
23
+
-**Maven** (included via Maven Wrapper)
24
+
11
25
## Getting Started
12
26
13
-
[TODO: Add getting started instructions explaining how to set connection string, start server, start client, etc.]
27
+
### 1. Configure the Backend
28
+
29
+
Navigate to the Java Spring server directory:
30
+
31
+
```bash
32
+
cd server/java-spring
33
+
```
34
+
35
+
Create a `.env` file from the example:
36
+
37
+
```bash
38
+
cp .env.example .env
39
+
```
40
+
41
+
Edit the `.env` file and set your MongoDB connection string:
0 commit comments