mirror of
https://github.com/kmitresse/Compo-Service-Log-Project.git
synced 2026-07-09 12:07:45 +00:00
14 lines
368 B
TypeScript
14 lines
368 B
TypeScript
import dotenv from "dotenv";
|
|
import Server from "./Server";
|
|
import { DatasetCollection } from "./services/dataset";
|
|
import { TypeOrmDataSource } from "./TypeOrmDataSource";
|
|
|
|
dotenv.config();
|
|
|
|
TypeOrmDataSource.initialize()
|
|
.then(() => DatasetCollection.loadAll())
|
|
.then(() => console.log("All datasets are loaded"))
|
|
.catch(console.error);
|
|
|
|
new Server().start();
|