1
0
Files
record-shop/server/src/index.ts

9 lines
284 B
TypeScript
Raw Normal View History

import { buildApp } from './app.js'
import { openDatabase } from './db.js'
2026-08-29 15:05:46 +02:00
import { loadConfig } from './config.js'
2026-08-29 15:05:46 +02:00
const config = loadConfig()
const db = openDatabase(config.dbPath)
const app = await buildApp({ db, config })
await app.listen({ port: config.port, host: '0.0.0.0' })