A koa server that loads routes from a yaml file with string interpolation. Execs and evals
commands for maximum justice. It is best used for wrapping apis (to support cors call, or transform the data, or return jsonp), command and control, and rapidly prototyping an idea.
After an initial run with config.yaml, you should look at app.js to see how things a hooked up. Install packages that do what you want. Modify the Dockerfile.
Try it:
- Copy config-example.yaml to config.yaml
- Run
node app.js
ornpm run start
to start the app
It will read the lines from the config file. For the demo to work you need curl, pup and jq installed
- https://stedolan.github.io/jq/download/
- https://github.com/ericchiang/pup/releases
- https://curl.haxx.se/download.html
Hit the localhost:3337/photos/some+query endpoint on the server to see some rad json.
Docker:
If you want to go the docker route you can take inspiration from the docker file included. You may need to tweak it to fit your needs
Make your microservers faster with franken server