diff options
Diffstat (limited to 'src/main.ts')
| -rw-r--r-- | src/main.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..b5eaa1d --- /dev/null +++ b/src/main.ts @@ -0,0 +1,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; |
