aboutsummaryrefslogtreecommitdiff
path: root/main.ts
blob: fc26c20816d46d102866fa2d62a7ca1c7075cf54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { App } from "./src/app.ts";
import { Logger } from "./src/util/logger.ts";
import { Cache } from "./src/util/cache.ts";
import { Countries } from "./src/countries.ts";

// I wanted to get the hang of OOP but this feels regrettable
const logger = new Logger();
const cache = new Cache();
const countries = new Countries(cache, logger);
const app = new App(logger, countries);

await app.run();