basic loaders logic

This commit is contained in:
2020-11-25 17:57:32 +01:00
parent d7b5563d0f
commit ab0e925ab3
3 changed files with 17 additions and 0 deletions

View File

@@ -4,6 +4,8 @@ import consola from 'consola';
import * as jwt from 'jsonwebtoken';
import { createConnection } from 'typeorm';
import 'reflect-metadata';
// const loaders = require('./loaders');
import * as loaders from './loaders/index';
dotenvSafe.config();
const app = express();
@@ -20,6 +22,7 @@ createConnection()
consola.info(encoded);
return res.send('Express + TypeScript Server');
});
// await loaders.init(app);
app.listen(PORT, () => {
consola.success(`⚡️[server]: Server is running at http://localhost:${PORT}`);
});