0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -05:00
logto/packages/core/src/index.ts

18 lines
300 B
TypeScript
Raw Normal View History

2021-07-02 22:55:14 +08:00
import 'module-alias/register';
2021-06-26 01:39:02 +08:00
import dotenv from 'dotenv';
dotenv.config();
2021-06-06 18:30:37 +08:00
import Koa from 'koa';
2021-06-27 20:44:05 +08:00
import initApp from './init';
2021-06-06 18:30:37 +08:00
const app = new Koa();
2021-06-27 20:44:05 +08:00
(async () => {
try {
await initApp(app);
2021-06-27 20:44:05 +08:00
} catch (error: unknown) {
console.log('Error while initializing app', error);
}
})();