Socialify

Folder ..

Viewing main.ts
12 lines (10 loc) • 401.0 B

 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();