Package breakdown - initial commit 1.0.0
This commit is contained in:
11
lib/index.ts
Normal file
11
lib/index.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import app from './app';
|
||||
import { connection } from '../db';
|
||||
import { PORT } from '../constants/env';
|
||||
|
||||
connection.then(
|
||||
() => {
|
||||
app.listen(PORT);
|
||||
console.debug('Server up and listening', { env: process.env });
|
||||
},
|
||||
(err) => console.error('Could not reach database', { err, env: process.env }),
|
||||
);
|
||||
Reference in New Issue
Block a user