Hello world example using Koa 2, handlebars templates and koa-router
git clone https://github.com/briantanseng/hello-world-koa2-handlebars.git
cd hello-world-koa2-handlebars
npm install
Tested on node v8.11.4, npm 5.6.0
npm start
You should see the following message Server running on 3000
Browse to http://localhost:3000 to verify that your page is running.
docker build -t hello-world-koa2-handlebars .
The tag given was hello-world-koa2-handlebars
. Feel free to change the tag.
docker run -it --rm \
-p 3000:3000 \
--name hello-koa2 \
hello-world-koa2-handlebars
docker stop hello-koa2
Check the installed docker images
docker images
Remove the image to reclaim disk space.
docker rmi hello-world-koa2-handlebars