finalize migration (yay)

This commit is contained in:
tw-blue
2025-12-10 22:11:30 +01:00
parent cd6cfec7f3
commit c7d53c88bc
40 changed files with 966 additions and 499 deletions
+2
View File
@@ -0,0 +1,2 @@
Set-Location -Path $PSScriptRoot/../packages/frontend
pnpm ng serve
+6
View File
@@ -0,0 +1,6 @@
Set-Location -Path $PSScriptRoot/../packages/api
$env:TKD_DB_HOST="localhost"
$env:TKD_DB_USER="webapi"
$env:TKD_DB_PASSWORD="devpassword"
$env:TKD_COOKIE_SECRET="devsecret"
pnpx tsx --watch --tsconfig .\tsconfig.json .\src\index.ts
+48
View File
@@ -0,0 +1,48 @@
Write-Host "Generating initial Apidoc"
pnpx tsoa spec-and-routes
Write-Host "Generating initial Frontend API client"
pnpx oazapfts --optimistic --useEnumType packages/frontend/src/app/generated-api/swagger.json packages/frontend/src/app/generated-api/api.ts
Write-Host "Starting watchers for API doc generation and Frontend client generation"
wt @(
"-w",
"0",
"-d",
".",
"pwsh",
"-c",
"pnpm",
"nodemon",
"--watch",
"./packages/api/src/controllers",
"--watch",
"./packages/api/src/dtos",
"-e",
"ts",
"-x",
"pnpm",
"run",
"generate",
";",
"sp",
"--title",
"API Doc Gen",
"-d",
".",
"pwsh",
"-c",
"pnpm",
"nodemon",
"--watch",
"./packages/frontend/src/app/generated-api/swagger.json",
"-e",
"json",
"-x",
"pnpm",
"--filter",
"frontend",
"run",
"generate"
)
Exit 0
+44
View File
@@ -0,0 +1,44 @@
$ErrorActionPreference = "Inquire"
wt @(
"nt",
"-d",
".",
"--title",
"Angular",
"pwsh",
"-NoExit",
"-File",
".\scripts\angular.ps1",
";",
"nt",
"-d",
".",
"--title",
"API TS",
"pwsh",
"-NoExit",
"-File",
".\scripts\api-ts.ps1",
";",
"nt",
"-d",
".",
"--title",
"Docker",
"pwsh",
"-NoExit",
"-File",
".\scripts\docker.ps1",
";",
"nt",
"-d",
".",
"--title",
"API Gen",
"pwsh",
"-File",
".\scripts\apigen.ps1")
+2
View File
@@ -0,0 +1,2 @@
Set-Location -Path $PSScriptRoot\..\packages\api\dev\
docker compose up