You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
597 B

require('dotenv').config();
// Initialize DB Connection
require('./config/database');
const config = require('./config/config').getConfig(),
PORT = config.PORT;
console.log('✔ Bootstrapping Application');
console.log(`✔ Mode: ${config.MODE}`);
console.log(`✔ Port: ${PORT}`);
const { server } = require('./config/server');
server.listen(PORT).on('error', (err) => {
console.log('✘ Application failed to start');
console.error('✘', err.message);
process.exit(0);
}).on('listening', () => {
console.log('✔ Application Started');
});
module.exports = { server };