Adding the lab project

This commit is contained in:
2026-07-01 12:10:12 +02:00
commit 48ce52b52c
56 changed files with 22289 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { Pool } from 'pg'
import { createCaStudioApi } from './caStudioApi.js'
const databaseUrl = process.env.DATABASE_URL
if (!databaseUrl) {
throw new Error('DATABASE_URL is required')
}
const pool = new Pool({ connectionString: databaseUrl })
const app = createCaStudioApi(pool)
const port = Number(process.env.PORT ?? 3100)
app.listen(port, () => {
console.log(`CA Studio API listening on http://localhost:${port}`)
})