blob: 84ccb67737381c19dfd81373591ea0d24902abd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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}`))
);
|