-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.js
34 lines (30 loc) · 924 Bytes
/
app.js
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
26
27
28
29
30
31
32
33
34
/**
* Main start
*
* To read documentation go to https://github.com/link-loom/loom-svc-js/wiki
*/
const { ServerManager } = require('@link-loom/sdk');
const server = new ServerManager({ root: __dirname });
const main = async () => {
const namespace = '[Server]';
const dependencies = await server.load();
// Launching server
dependencies.console.info(
`http://localhost:${dependencies.config.SERVER.PORT}/`,
{ namespace },
);
dependencies.console.info(
`http://localhost:${dependencies.config.SERVER.PORT}/open-api.playground`,
{ namespace },
);
dependencies.console.info(
`http://localhost:${dependencies.config.SERVER.PORT}/open-api.json`,
{ namespace },
);
dependencies.console.info(
`${dependencies.config.SERVER.NAME} v${dependencies.config.SERVER.VERSION}`,
{ namespace },
);
dependencies.console.log(' ------------------------------------');
};
main();