Created
October 13, 2017 22:40
-
-
Save govorov/b8a186b7147898de9cc6144d296bb392 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as Koa from 'koa'; | |
import { databaseInitializer } from 'initializers/database'; | |
import { routes } from 'routes'; | |
const bootstrap = async () => { | |
await databaseInitializer(); | |
const app = new Koa(); | |
app | |
.use(routes.routes()) | |
.use(routes.allowedMethods()) | |
.listen(3000); | |
}; | |
bootstrap(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment