initial server side setup

This commit is contained in:
Bilal Catic
2019-05-23 16:41:50 +02:00
parent b140cef88c
commit 604f952a7a
10 changed files with 3947 additions and 1 deletions

10
server.js Normal file
View File

@@ -0,0 +1,10 @@
'use strict';
const express = require("express");
const routes = require('./routes');
const app = express();
const port = process.env.PORT || 5000;
app.use('/api', routes);
app.listen(port, () => console.log(`App running on port ${port}!`));