Huzaifa1435's picture
Initial Commit: Clean backend without large files
e3fefe8
Raw History Blame Contribute Delete
438 Bytes
require('dotenv').config();
const app = require('./src/app');
const HOST = process.env.HOST || '0.0.0.0';
const PORT = Number(process.env.PORT || 3000);
process.env.HOST = HOST;
process.env.PORT = String(PORT);
app.locals.host = HOST;
app.locals.port = PORT;
app.listen(PORT, HOST, () => {
console.log(`Service Connect backend running at http://${HOST}:${PORT}`);
console.log(`Health endpoint: http://${HOST}:${PORT}/health`);
});