Initial commit.

This commit is contained in:
Ahmed Bouhuolia
2019-08-20 00:32:41 +02:00
commit cb8c294d74
61 changed files with 20779 additions and 0 deletions

21
server/server.js Normal file
View File

@@ -0,0 +1,21 @@
import path from 'path';
import dotenv from 'dotenv';
import errorHandler from 'errorhandler';
import app from './http/app';
dotenv.config({
path: path.join(__dirname, '.env')
});
app.use(errorHandler);
const server = app.listen(app.get('port'), () => {
console.log(
" App is running at http://localhost:%d in %s mode",
app.get("port"),
app.get("env")
);
console.log(" Press CTRL-C to stop\n");
});
export default server;