Add backend tests #1

Merged
bilal.catic merged 10 commits from add-backend-tests into master 2020-02-18 11:27:34 +01:00
2 changed files with 16 additions and 13 deletions
Showing only changes of commit 742f1baba4 - Show all commits

View File

@@ -1,17 +1,5 @@
import express from "express";
import dotenv from "dotenv";
import * as bodyParser from 'body-parser';
import * as routes from "./routes"
import {SERVER_PORT} from "./config";
dotenv.config();
const app = express();
app.use(bodyParser.json());
// Configure routes
routes.register(app);
import app from "./server";
// start the Express server
app.listen(SERVER_PORT, () => {

15
backend/src/server.ts Normal file
View File

@@ -0,0 +1,15 @@
import express from "express";
import dotenv from "dotenv";
import * as bodyParser from 'body-parser';
import * as routes from "./routes"
dotenv.config();
const app = express();
app.use(bodyParser.json());
// Configure routes
routes.register(app);
export default app;