mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-10-29 16:46:01 +08:00
Add an example project with dockerfile - 1st draft
This commit is contained in:
10
sections/examples/dockerfile/src/app.ts
Normal file
10
sections/examples/dockerfile/src/app.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import * as Koa from 'koa';
|
||||
const app = new Koa();
|
||||
|
||||
app.use(async ctx => {
|
||||
ctx.body = 'Hello World';
|
||||
});
|
||||
|
||||
app.listen(3000, () => {
|
||||
console.log('Navigate to http://localhost:3000');
|
||||
});
|
||||
Reference in New Issue
Block a user