A simple KOA app that responds to a default route, /
, with json saying, 'Hello World.'
This is a companion demo app that is used in a series of blog posts demonstrating a way to deploy an app like this to Digital Ocean with Nanobox.
yarn install
./node_modules/.bin/jest ./__tests__/app_test.js
node app.js
Or if you have nanobox installed and wish to run it locally in a container:
nanobox run
and then
node app.js
A bit more involved, part 3 of the series mentioned above details how to configure a hosting provider with Nanobox. Nothing too crazy you just have to step through it. Once you do you can add a remote with:
nanobox remote add <your-remote-name>
and then
nanobox deploy