feat(ui): full UI layer + migrations + docker fixes #147

Merged
djalim merged 11 commits from PMPR-ui into develop 2026-04-27 17:00:56 +00:00
4 changed files with 13 additions and 2 deletions
Showing only changes of commit 757e364af0 - Show all commits
+4
View File
@@ -0,0 +1,4 @@
node_modules
.git
coverage
.env
+5
View File
@@ -1,7 +1,12 @@
FROM denoland/deno:alpine FROM denoland/deno:alpine
RUN apk add --no-cache nodejs npm
WORKDIR /app WORKDIR /app
COPY package.json ./
RUN npm install --omit=dev
COPY . . COPY . .
RUN deno cache main.ts --allow-import RUN deno cache main.ts --allow-import
RUN deno task build RUN deno task build
+3 -1
View File
@@ -16,7 +16,9 @@ services:
migrate: migrate:
image: registry.docker.polytech.djalim.fr/polympr:latest image: registry.docker.polytech.djalim.fr/polympr:latest
command: node_modules/.bin/drizzle-kit migrate working_dir: /app
restart: "no"
command: ["node", "node_modules/.bin/drizzle-kit", "migrate"]
env_file: .env env_file: .env
depends_on: depends_on:
db: db:
+1 -1
View File
@@ -1,12 +1,12 @@
{ {
"dependencies": { "dependencies": {
"dotenv": "^17.4.0", "dotenv": "^17.4.0",
"drizzle-kit": "^0.31.10",
"drizzle-orm": "^0.45.2", "drizzle-orm": "^0.45.2",
"pg": "^8.20.0" "pg": "^8.20.0"
}, },
"devDependencies": { "devDependencies": {
"@types/pg": "^8.20.0", "@types/pg": "^8.20.0",
"drizzle-kit": "^0.31.10",
"tsx": "^4.21.0" "tsx": "^4.21.0"
} }
} }