-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
27 lines (21 loc) · 679 Bytes
/
Copy pathapp.js
File metadata and controls
27 lines (21 loc) · 679 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
process.env.TZ = 'utc';
require('dotenv').config();
// Root path
require('app-module-path/register'); // eslint-disable-line import/no-unassigned-import
const PORT = process.env.PORT;
const database = require('providers/database');
const server = require('providers/server');
async function bootstrap() {
try {
await database.connect();
server.listen(PORT, async () => {
console.log(`http://localhost:${PORT}`);
console.log(`http://localhost:${PORT}/pull/bcom`);
console.log(`http://localhost:${PORT}/pulls/bcom`);
console.log(`http://localhost:${PORT}/compare/1/2`);
});
} catch (error) {
console.log(error);
}
}
bootstrap();