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

16 lines
420 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 15:28:48 +00:00
console.info("Load configuration...");
2019-11-21 16:35:56 +00:00
ConfigurationHelper.loadConf("config.json");
console.info("Connect to database");
DatabaseHelper.connect();