Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var express = require("express");
- const server = express();
- const morgan = require("morgan");
- // Constants
- var DEFAULT_PORT = 8089;
- var PORT = process.env.PORT || DEFAULT_PORT;
- const bodyParser = require("body-parser");
- server.use(
- morgan(":method :url :status :res[content-length] - :response-time ms")
- );
- server.use(bodyParser.urlencoded({ extended: false }));
- require("./apps")(server);
- server.listen(PORT);
- console.log("Optimus Running on Port : " + PORT);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement