feat(api): scaffold express server with /api/health endpoint
This commit is contained in:
parent
04acd4b580
commit
a0f008be74
4 changed files with 34 additions and 1 deletions
9
apps/api/src/server.ts
Normal file
9
apps/api/src/server.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { createApp } from "./app.js";
|
||||
|
||||
const PORT = Number(process.env["PORT"] ?? 3000);
|
||||
|
||||
const app = createApp();
|
||||
|
||||
app.listen(PORT, () => {
|
||||
console.log(`Server listening on port ${PORT}`);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue