From b56101f1a11552067f594679a497ebd4cf7427d4 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Sun, 20 Aug 2023 15:33:43 +0100 Subject: Initial commit --- app/index.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 app/index.ts (limited to 'app/index.ts') diff --git a/app/index.ts b/app/index.ts new file mode 100644 index 0000000..8921076 --- /dev/null +++ b/app/index.ts @@ -0,0 +1,17 @@ +import { logger } from './logger.js'; +import express from 'express'; +import upload from './routes/upload.js'; +import config from 'config'; + +const startDate = new Date(); + +logger.info(`Welcome to scrapbook, ${startDate.toString()}`); +logger.info(''); + +const app = express(); + +app.use(upload); + +app.listen(config.get('port'), () => { + logger.info(`Server started on port ${config.get('port')}`); +}); -- cgit v1.2.3-70-g09d2