Created
August 24, 2018 19:05
-
-
Save jarbacoa/93936967a4648737fea5ed83ec4788ce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Direct Imports | |
const express = require("express"); | |
const winston = require("winston"); | |
// Instantiate express | |
const app = express(); | |
require("./startup/logging")(); | |
require("./startup/middleware")(app); | |
// require("./startup/config")(); | |
require("./startup/routes")(app); | |
require("./startup/db")(); | |
require("./startup/validation")(); | |
// PORT | |
const port = process.env.PORT || 5000; | |
const server = app.listen(port, () => { | |
winston.info(`Listening on port ${port}...`); | |
}); | |
module.exports = server; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment