diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2023-08-20 15:33:43 +0100 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2023-08-20 15:37:20 +0100 |
| commit | b56101f1a11552067f594679a497ebd4cf7427d4 (patch) | |
| tree | 666014eb2199d3f230435a60ac4e0d1ed098fe62 /app/index.ts | |
Initial commit
Diffstat (limited to 'app/index.ts')
| -rw-r--r-- | app/index.ts | 17 |
1 files changed, 17 insertions, 0 deletions
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')}`); +}); |
