summaryrefslogtreecommitdiff
path: root/index.js
blob: f0778fd800a10825f8e08a8bf529d07b109ec694 (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}`))
);