require('dotenv').config(); const app = require('./src/app.js'); const connectDb = require('./src/connectDb.js'); const PORT = process.env.PORT || 3030; connectDb().then(() => app .listen(PORT) .on('listening', () => console.log(`Feathers server listening on localhost:${PORT}`)) );