Add skeleton
This commit is contained in:
10
index.js
Normal file
10
index.js
Normal file
@@ -0,0 +1,10 @@
|
||||
require("dotenv").config({ path: __dirname + "/.env" });
|
||||
const http = require("http");
|
||||
const app = require("./app");
|
||||
const { logger } = require("./utils/logger");
|
||||
|
||||
const server = http.createServer(app);
|
||||
|
||||
const PORT = process.env.PORT || 9524;
|
||||
|
||||
server.listen(PORT, () => logger.info(`Magic happening on port: ${PORT}`));
|
||||
Reference in New Issue
Block a user