feat: sample backend package w/ express
This commit is contained in:
parent
100b326baf
commit
6dc71c32cc
9 changed files with 743 additions and 16 deletions
15
apps/vdb-backend/src/index.ts
Normal file
15
apps/vdb-backend/src/index.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { SAMPLE } from "@repo/common/sample";
|
||||
import express from "express";
|
||||
|
||||
const PORT = 1224;
|
||||
|
||||
const app = express();
|
||||
|
||||
app.get("/sample", (_req, res) => {
|
||||
res.status(200).send(SAMPLE);
|
||||
});
|
||||
|
||||
app.listen(PORT, () => {
|
||||
console.log(`Backend started @ http://localhost:${PORT} !`);
|
||||
console.log(SAMPLE);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue