Socialify

Folder ..

Viewing main.ts
15 lines (12 loc) • 510.0 B

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
import { App } from "./app.ts";
import { Logger } from "./util/logger.ts";
import { Cache } from "./util/cache.ts";
import { Countries } from "./countries.ts";
import { ImageConverter } from "./util/image-converter.ts";

// I wanted to get the hang of OOP but this feels regrettable
const logger = new Logger();
const cache = new Cache();
const imageConverter = new ImageConverter();

const countries = new Countries(cache, logger, imageConverter);
const app = new App(logger, countries);

export default app;