mirror of
https://github.com/kmitresse/Compo-Service-Log-Project.git
synced 2026-07-09 12:07:45 +00:00
feat: Use Db with TypeORM to save logs
This commit is contained in:
+3
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user