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();
|