Separate API, proc
This commit is contained in:
parent
c1f1742948
commit
6a3f531527
27 changed files with 334 additions and 104 deletions
8
backend/src/server.ts
Normal file
8
backend/src/server.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import App from "./app";
|
||||
import { connectDb } from "./db";
|
||||
|
||||
(async () => {
|
||||
await connectDb();
|
||||
const port = process.env.PORT || 3030;
|
||||
App.listen(port, () => console.log(`Listening on http://0.0.0.0:${port}`));
|
||||
})();
|
||||
Loading…
Reference in a new issue