aboutsummaryrefslogtreecommitdiffstats
path: root/app/index.ts
blob: 892107607e378ea1e2c4f3345e5324d7fa1f4ad6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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')}`);
});