import { buildApp } from './app.js' import { openDatabase } from './db.js' import { loadConfig } from './config.js' 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' })