feat: Use Db with TypeORM to save logs

This commit is contained in:
Lucàs
2024-10-16 00:51:11 +02:00
parent 4a04814901
commit c95c92e987
9 changed files with 1290 additions and 52 deletions
+3 -1
View File
@@ -1,10 +1,12 @@
import dotenv from "dotenv";
import Server from "./Server";
import { DatasetCollection } from "./services/dataset";
import { AppDataSource } from "./AppDataSource";
dotenv.config();
DatasetCollection.loadAll()
AppDataSource.initialize()
.then(() => DatasetCollection.loadAll())
.then(() => console.log("All datasets are loaded"))
.then(() => new Server().start())
.catch(console.error);