1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-26 15:29:22 +00:00
comunicapiv2/src/main.ts

21 lines
467 B
TypeScript
Raw Normal View History

2019-11-21 16:35:56 +00:00
import { ConfigurationHelper } from "./helpers/ConfigHelper";
import { DatabaseHelper } from "./helpers/DatabaseHelper";
2019-11-21 15:28:48 +00:00
2019-11-21 15:08:52 +00:00
/**
* Main project script
*
* @author Pierre HUBERT
*/
2019-11-21 15:28:48 +00:00
console.info("Comunic API v6\t@author Pierre HUBERT\t2019-" + new Date().getFullYear());
2019-11-21 15:08:52 +00:00
2019-11-21 16:37:30 +00:00
async function init() {
console.info("Load configuration...");
ConfigurationHelper.loadConf("config.json");
2019-11-21 16:35:56 +00:00
2019-11-21 16:37:30 +00:00
console.info("Connect to database");
await DatabaseHelper.connect();
}
init();