feat: stabilization + recipe edit/create UI
This commit is contained in:
18
backend/src/index.ts
Normal file
18
backend/src/index.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { buildApp } from './app.js';
|
||||
import { runMigrations } from './db/migrate.js';
|
||||
|
||||
const PORT = Number(process.env.PORT || 6001);
|
||||
|
||||
async function main() {
|
||||
console.log('Running migrations...');
|
||||
runMigrations();
|
||||
|
||||
const app = await buildApp();
|
||||
await app.listen({ port: PORT, host: '0.0.0.0' });
|
||||
console.log(`Server running on http://localhost:${PORT}`);
|
||||
}
|
||||
|
||||
main().catch((err) => {
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
});
|
||||
Reference in New Issue
Block a user