setup backend project structure

This commit is contained in:
Bilal Catic
2020-02-14 07:53:18 +01:00
parent 51c2dfd824
commit 7fdda1b32e
10 changed files with 693 additions and 1 deletions

18
backend/src/index.ts Normal file
View File

@@ -0,0 +1,18 @@
import express from "express";
import dotenv from "dotenv";
import * as routes from "./routes"
dotenv.config();
const port = process.env.SERVER_PORT || 8080;
const app = express();
// Configure routes
routes.register(app);
// start the Express server
app.listen(port, () => {
// tslint:disable-next-line:no-console
console.log( `server started at http://localhost:${port}` );
} );