Created
October 7, 2017 02:21
-
-
Save govorov/38f3ba51baf5708500fc8d1060619f79 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'; | |
const bootstrap = async () => { | |
await databaseInitializer(); | |
const app = new Koa(); | |
app.use(async ctx => { | |
ctx.body = "It works!\n"; | |
}); | |
app.listen(3000); | |
}; | |
bootstrap(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment