Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
dda39fa
chore: initialize nestjs dedicated app
StephaneTrebel Dec 2, 2025
016c821
chore: move the entirety of apps/server in server-nestjs
StephaneTrebel Dec 3, 2025
6914903
chore: start integration old-server into nestjs
StephaneTrebel Dec 3, 2025
f820fc6
chore: update old-server import aliases
StephaneTrebel Dec 3, 2025
cae9471
chore: apply prettier on old-server
StephaneTrebel Dec 3, 2025
2654a69
chore: fix all typescript import errors by massively creating NestJs …
StephaneTrebel Dec 4, 2025
0c3cc3c
chore: convert plugin manager to NestJS service
StephaneTrebel Dec 9, 2025
f726145
chore: remove .js extensions from imports
StephaneTrebel Dec 9, 2025
22e7774
chore(gitlab-plugin): interalize awaited import to avoid top-level-aw…
StephaneTrebel Dec 9, 2025
f2eefc6
chore: add old-server new Nest.js services to CpinModule
StephaneTrebel Dec 9, 2025
378ea61
chore: fix any type in AppService
StephaneTrebel Dec 9, 2025
0dc0020
chore: disable tests from nest.js for now
StephaneTrebel Dec 9, 2025
2c44fce
chore: rename nest.js base AppModule to MainModule for clarification …
StephaneTrebel Dec 9, 2025
667a69c
chore: add server-nestjs README to explain what we are doing
StephaneTrebel Dec 10, 2025
a3c0c92
chore(server-nestjs): remove test scripts (we'll migrate to vitest soon)
StephaneTrebel Dec 10, 2025
29257ea
chore(nest-js): initialize a bunch of module/services to move old-ser…
StephaneTrebel Dec 12, 2025
c44e601
chore(nest-js): update old-server code from main
StephaneTrebel Dec 12, 2025
f4340b6
chore(nest-js): add basic config and logger modules based on existing…
StephaneTrebel Dec 12, 2025
77dd91c
chore(server-nestjs): retrieve prisma directory from old-server as-is
StephaneTrebel Dec 15, 2025
28d4ff5
chore(server-nestjs): rework configuration service to properly instan…
StephaneTrebel Dec 15, 2025
6ae6d5a
chore(server-nestjs): add database initialization code in DatabaseIni…
StephaneTrebel Dec 15, 2025
ab0793b
chore(server-nestjs): add code to PluginManagementService
StephaneTrebel Dec 15, 2025
76bdfb6
chore(server-nestjs): add code to DatabaseService and thus finalize A…
StephaneTrebel Dec 15, 2025
e0d3d30
chore(server-nestjs): rename vite file to avoid compilation issues fo…
StephaneTrebel Dec 15, 2025
aafff4c
chore(server-nestjs): initialize core module and its AppService
StephaneTrebel Dec 15, 2025
ee41add
chore(server-nestjs): convert all router services to NestJS classes
StephaneTrebel Dec 18, 2025
7d41ca9
chore(server-nestjs): delete unneeded code
StephaneTrebel Dec 22, 2025
c6098d3
chore(server-nestjs): update README with a plan for the future
StephaneTrebel Dec 22, 2025
8f517e1
chore(server-nestjs): update README with the modularization target
StephaneTrebel Dec 23, 2025
d4ebfcd
chore(server-nestjs): remove now useless old-server directory
StephaneTrebel Jan 6, 2026
a649f92
chore(server-nestjs): use old-server eslint config
StephaneTrebel Jan 6, 2026
9a412ef
chore(server-nestjs): remove Router module
StephaneTrebel Jan 6, 2026
771768c
chore(server-nestjs): fix a fastify type issue
StephaneTrebel Jan 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions apps/server-nestjs/.env-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
DEV_SETUP="true"
NODE_ENV=development
# HOME=/home/node
SESSION_SECRET=a-very-strong-secret-with-more-than-32-char
KEYCLOAK_DOMAIN=localhost:8090
KEYCLOAK_REALM=cloud-pi-native
KEYCLOAK_PROTOCOL=http
KEYCLOAK_CLIENT_ID=dso-console-backend
KEYCLOAK_CLIENT_SECRET=client-secret-backend
KEYCLOAK_REDIRECT_URI=http://localhost:8080
SERVER_PORT=4000
DB_URL=postgresql://admin:admin@localhost:5432/dso-console-db?schema=public

Check failure on line 12 in apps/server-nestjs/.env-example

View check run for this annotation

cloud-pi-native-sonarqube / SonarQube Code Analysis

apps/server-nestjs/.env-example#L12

Make sure this PostgreSQL database password gets changed and removed from the code.
CONTACT_EMAIL=cloudpinative-relations@interieur.gouv.fr

# Configuration OpenCDS
OPENCDS_URL=
OPENCDS_API_TOKEN=token
OPENCDS_API_TLS_REJECT_UNAUTHORIZED=true
13 changes: 13 additions & 0 deletions apps/server-nestjs/.env.docker-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
DOCKER=true
DEV_SETUP="true"
NODE_ENV=development
SESSION_SECRET=a-very-strong-secret-with-more-than-32-char
KEYCLOAK_DOMAIN=keycloak:8080
KEYCLOAK_REALM=cloud-pi-native
KEYCLOAK_PROTOCOL=http
KEYCLOAK_CLIENT_ID=dso-console-backend
KEYCLOAK_CLIENT_SECRET=client-secret-backend
KEYCLOAK_REDIRECT_URI=http://localhost:8080
SERVER_PORT=8080
DB_URL=postgresql://admin:admin@postgres:5432/dso-console-db?schema=public

Check failure on line 12 in apps/server-nestjs/.env.docker-example

View check run for this annotation

cloud-pi-native-sonarqube / SonarQube Code Analysis

apps/server-nestjs/.env.docker-example#L12

Make sure this PostgreSQL database password gets changed and removed from the code.
CONTACT_EMAIL=cloudpinative-relations@interieur.gouv.fr
43 changes: 43 additions & 0 deletions apps/server-nestjs/.env.integ-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
DEV_SETUP="false"
INTEGRATION=true
KEYCLOAK_PROTOCOL=https
KEYCLOAK_CLIENT_ID=
KEYCLOAK_CLIENT_SECRET=
KEYCLOAK_DOMAIN=
KEYCLOAK_REALM=
ARGO_NAMESPACE=
ARGOCD_URL=
GITLAB_TOKEN=
GITLAB_URL=
HARBOR_ADMIN=
HARBOR_ADMIN_PASSWORD=
HARBOR_URL=
KEYCLOAK_ADMIN=
KEYCLOAK_ADMIN_PASSWORD=
KEYCLOAK_URL=
NEXUS_ADMIN=
NEXUS_ADMIN_PASSWORD=
NEXUS_URL=
PROJECTS_ROOT_DIR=
SONAR_API_TOKEN=
SONARQUBE_URL=
VAULT_TOKEN=
VAULT_URL=

KUBECONFIG_HOST_PATH=
KUBECONFIG_PATH=$HOME/.kube/config
KUBECONFIG_CTX=

EXTERNAL_PLUGINS_DIR_HOST_PATH=/path/to/plugins

# Variables de plugins externes

# GRAVITEE_APIM_API_ID=
# GRAVITEE_APIM_PLAN_ID=
# GRAVITEE_APIM_TOKEN=
# GRAVITEE_APIM_URL=
# GRAVITEE_GATEWAY_URL=

# HTTP_PROXY=
# HTTPS_PROXY=
# NO_PROXY=
56 changes: 56 additions & 0 deletions apps/server-nestjs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# compiled output
/dist
/node_modules
/build

# Logs
logs
*.log
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# OS
.DS_Store

# Tests
/coverage
/.nyc_output

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# temp directory
.temp
.tmp

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12 changes: 12 additions & 0 deletions apps/server-nestjs/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"plugins": ["@trivago/prettier-plugin-sort-imports"],
"importOrderParserPlugins": ["typescript", "decorators"],
"importOrder": ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"printWidth": 80,
"semi": true,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "all"
}
Loading
Loading