Skip to content

Commit 0a238d6

Browse files
authored
Merge pull request #30 from dacharyc/move-feature-complete-apps
Move Java Spring and Python FastAPI apps to final dir structure
2 parents 7e40f17 + e6ec7c6 commit 0a238d6

File tree

72 files changed

+252
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+252
-16
lines changed

.github/workflows/run-java-spring-boot-tests.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ on:
44
pull_request_target:
55
branches:
66
- development
7+
paths:
8+
- 'mflix/server/java-spring/**'
79
push:
810
branches:
911
- development
12+
paths:
13+
- 'mflix/server/java-spring/**'
1014

1115
jobs:
1216
test:
@@ -17,7 +21,7 @@ jobs:
1721

1822
defaults:
1923
run:
20-
working-directory: server/java-spring
24+
working-directory: mflix/server/java-spring
2125

2226
env:
2327
MONGODB_URI: ${{ secrets.MFLIX_URI }}
@@ -39,13 +43,6 @@ jobs:
3943
- name: Make mvnw executable
4044
run: chmod +x mvnw
4145

42-
- name: Debug environment variables
43-
run: |
44-
echo "Checking environment variables..."
45-
echo "MONGODB_URI is set: $(if [ -n "$MONGODB_URI" ]; then echo 'YES'; else echo 'NO'; fi)"
46-
echo "ENABLE_SEARCH_TESTS is set: $(if [ -n "$ENABLE_SEARCH_TESTS" ]; then echo 'YES'; else echo 'NO'; fi)"
47-
echo "MONGODB_URI length: ${#MONGODB_URI}"
48-
4946
- name: Run unit tests
5047
run: ./mvnw test
5148

@@ -58,12 +55,12 @@ jobs:
5855
if: always()
5956
with:
6057
name: test-results
61-
path: server/java-spring/target/surefire-reports/
58+
path: mflix/server/java-spring/target/surefire-reports/
6259
retention-days: 30
6360

6461
- name: Generate Test Summary
6562
if: always()
6663
working-directory: .
6764
run: |
6865
chmod +x .github/scripts/generate-test-summary-surefire.sh
69-
.github/scripts/generate-test-summary-surefire.sh server/java-spring/target/surefire-reports
66+
.github/scripts/generate-test-summary-surefire.sh mflix/server/java-spring/target/surefire-reports

.github/workflows/run-python-tests.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ on:
44
pull_request_target:
55
branches:
66
- development
7+
paths:
8+
- 'mflix/server/python-fastapi/**'
79
push:
810
branches:
911
- development
12+
paths:
13+
- 'mflix/server/python-fastapi/**'
1014

1115
jobs:
1216
test:
@@ -17,7 +21,7 @@ jobs:
1721

1822
defaults:
1923
run:
20-
working-directory: server/python
24+
working-directory: mflix/server/python-fastapi
2125

2226
steps:
2327
- name: Checkout code
@@ -54,9 +58,9 @@ jobs:
5458
with:
5559
name: test-results
5660
path: |
57-
server/python/test-results-unit.xml
58-
server/python/test-results-integration.xml
59-
server/python/htmlcov/
61+
mflix/server/python-fastapi/test-results-unit.xml
62+
mflix/server/python-fastapi/test-results-integration.xml
63+
mflix/server/python-fastapi/htmlcov/
6064
retention-days: 30
6165

6266
- name: Generate Test Summary
@@ -65,5 +69,5 @@ jobs:
6569
run: |
6670
chmod +x .github/scripts/generate-test-summary-pytest.sh
6771
.github/scripts/generate-test-summary-pytest.sh \
68-
server/python/test-results-unit.xml \
69-
server/python/test-results-integration.xml
72+
mflix/server/python-fastapi/test-results-unit.xml \
73+
mflix/server/python-fastapi/test-results-integration.xml

mflix/.gitignore-java

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
#-------
2+
# Common
3+
#-------
4+
5+
# Environment variables
6+
.env
7+
!.env.example
8+
*.pem
9+
10+
#MacOS files
11+
.DS_Store
12+
13+
#---------------------------
14+
# Java / Spring Boot backend
15+
#---------------------------
16+
17+
#Cache
18+
.cache/
19+
20+
# Compiled Files
21+
*.class
22+
*.ctxt
23+
.mtj.tmp/
24+
25+
# Package Files
26+
*.jar
27+
*.war
28+
*.nar
29+
*.ear
30+
31+
# Crash Logs
32+
hs_err_pid*
33+
replay_pid*
34+
35+
# Maven
36+
target/
37+
pom.xml.tag
38+
pom.xml.releaseBackup
39+
pom.xml.versionsBackup
40+
pom.xml.next
41+
release.properties
42+
dependency-reduced-pom.xml
43+
buildNumber.properties
44+
.mvn/timing.properties
45+
.mvn/wrapper/maven-wrapper.jar
46+
47+
# IntelliJ IDEA
48+
*.iws
49+
*.iml
50+
*.ipr
51+
out/
52+
!**/src/main/**/out/
53+
!**/src/test/**/out/
54+
55+
# Eclipse
56+
.apt_generated
57+
.classpath
58+
.factorypath
59+
.project
60+
.settings
61+
.springBeans
62+
.sts4-cache
63+
bin/
64+
!**/src/main/**/bin/
65+
!**/src/test/**/bin/
66+
67+
# NetBeans
68+
/nbproject/private/
69+
/nbbuild/
70+
/dist/
71+
/nbdist/
72+
/.nb-gradle/
73+
74+
# Spring Boot
75+
spring-boot-devtools.properties
76+
77+
#------------------------
78+
# Next.js Client frontend
79+
#------------------------
80+
81+
# dependencies
82+
/node_modules
83+
/.pnp
84+
.pnp.*
85+
.yarn/*
86+
!.yarn/patches
87+
!.yarn/plugins
88+
!.yarn/releases
89+
!.yarn/versions
90+
package-lock.json
91+
92+
# testing
93+
/coverage
94+
95+
# next.js
96+
/.next/
97+
/out/
98+
99+
# production
100+
/build
101+
102+
# debug
103+
npm-debug.log*
104+
yarn-debug.log*
105+
yarn-error.log*
106+
.pnpm-debug.log*
107+
108+
# vercel
109+
.vercel
110+
111+
# typescript
112+
*.tsbuildinfo
113+
next-env.d.ts

mflix/.gitignore-js

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#-------
2+
# Common
3+
#-------
4+
5+
# Environment variables
6+
.env
7+
!.env.example
8+
*.pem
9+
10+
#MacOS files
11+
.DS_Store
12+
13+
# Dependencies
14+
node_modules/
15+
package-lock.json
16+
/.pnp
17+
.pnp.*
18+
.yarn/*
19+
!.yarn/patches
20+
!.yarn/plugins
21+
!.yarn/releases
22+
!.yarn/versions
23+
24+
# TypeScript
25+
*.tsbuildinfo
26+
27+
# Test coverage
28+
coverage/
29+
30+
# Logs
31+
logs
32+
*.log
33+
34+
#-------------------
35+
# Express.js Backend
36+
#-------------------
37+
38+
# Build output
39+
dist/
40+
41+
# Test results
42+
test-results.json
43+
44+
# Optional npm cache directory
45+
.npm
46+
47+
#------------------------
48+
# Next.js Client frontend
49+
#------------------------
50+
51+
# next.js
52+
/.next/
53+
/out/
54+
55+
# production
56+
/build
57+
58+
# vercel
59+
.vercel
60+
61+
# typescript
62+
next-env.d.ts

mflix/.gitignore-python

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#-------
2+
# Common
3+
#-------
4+
5+
# Environment variables
6+
.env
7+
!.env.example
8+
*.pem
9+
10+
#MacOS files
11+
.DS_Store
12+
13+
#-------------------------
14+
# Python / FastAPI backend
15+
#-------------------------
16+
17+
# Byte-compiled / optimized files
18+
__pycache__/
19+
*.py[cod]
20+
*$py.class
21+
22+
# Virtual environment
23+
.venv/
24+
25+
#------------------------
26+
# Next.js Client frontend
27+
#------------------------
28+
29+
# dependencies
30+
/node_modules
31+
package-lock.json
32+
33+
# testing
34+
/coverage
35+
36+
# next.js
37+
/.next/
38+
/out/
39+
40+
# production
41+
/build
42+
43+
# Logs
44+
logs
45+
*.log
46+
47+
# vercel
48+
.vercel
49+
50+
# typescript
51+
*.tsbuildinfo
52+
next-env.d.ts

server/java-spring/.env.example renamed to mflix/server/java-spring/.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# Replace with your MongoDB Atlas connection string or local MongoDB URI
33
MONGODB_URI=mongodb+srv://username:[email protected]/?retryWrites=true&w=majority
44

5+
# Voyage AI Configuration
6+
# API key for Voyage AI embedding model (required for Vector Search)
7+
VOYAGE_API_KEY=your_voyage_api_key
8+
59
# Server Configuration
610
# Port on which the Spring Boot application will run
711
PORT=3001
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)