CityGame/apps/backend/project.json
Camille 7a9383e87f feat: bootstrap fullstack NX monorepo (Spring Boot + React)
- Add Spring Boot 3.4 backend with health API, CORS, and dev/prod profiles
- Add React 18 + Vite frontend with typed health client
- Configure NX workspace, pnpm, and Docker Compose stacks
- Document stack, commands, and layout in README
- Add .gitignore for Node, Java, Docker, and IDE artifacts
2026-05-29 23:42:03 +02:00

57 lines
1.5 KiB
JSON

{
"name": "backend",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/backend/src",
"projectType": "application",
"tags": ["scope:backend", "type:app"],
"targets": {
"serve": {
"executor": "nx:run-commands",
"options": {
"command": "./mvnw spring-boot:run -Dspring-boot.run.profiles=dev -Dspring-boot.run.jvmArguments=\"-Xmx512m\"",
"cwd": "{projectRoot}"
}
},
"build": {
"executor": "nx:run-commands",
"cache": true,
"inputs": [
"{projectRoot}/src/**/*",
"{projectRoot}/pom.xml"
],
"outputs": ["{projectRoot}/target"],
"options": {
"command": "./mvnw package -DskipTests -q",
"cwd": "{projectRoot}"
}
},
"test": {
"executor": "nx:run-commands",
"cache": true,
"inputs": [
"{projectRoot}/src/**/*",
"{projectRoot}/pom.xml"
],
"outputs": ["{projectRoot}/target/surefire-reports"],
"options": {
"command": "./mvnw test",
"cwd": "{projectRoot}"
}
},
"lint": {
"executor": "nx:run-commands",
"options": {
"command": "./mvnw checkstyle:check",
"cwd": "{projectRoot}"
}
},
"docker-build": {
"executor": "nx:run-commands",
"dependsOn": ["build"],
"options": {
"command": "docker build -t citygame-backend -f apps/backend/Dockerfile .",
"cwd": "{workspaceRoot}"
}
}
}
}