const http = require('http'); const app = require('./app'); require('dotenv').config(); const port = process.env.PORT; const server = http.createServer(app); const appName = process.env.APP_NAME; const appVersion = process.env.APP_VERSION; const appDescription = process.env.APP_DESCRIPTION; const appAuthor = process.env.APP_AUTHOR; const appLicense = process.env.APP_LICENSE; server.listen(port, () => { console.log("~".repeat(80)); console.log("~ " + appName + " ~"); console.log("~ Version: " + appVersion); console.log("~ Description: " + appDescription); console.log("~ Author: " + appAuthor); console.log("~ License: " + appLicense); console.log("~ Server is running at http://localhost:" + port); console.log("~".repeat(80)); });