elastic node.js application / web server
turtle.io can be used to create complex applications with custom routes per HTTP verb, act as a reverse proxy to other services, and serve your static content with virtual hosts
Faster than your hardware!
Keep latency low, use an SSD
- Install turtle.io from npm: "> npm install turtle.io"
- Create a script to load & start a server. You could use sample.js in the turtle.io directory (./node_modules/turtle.io) as a template, or see the examples below
- [Optional] Edit config.json in the turtle.io directory to configure server defaults; you can override defaults by passing server.start() an Object
Virtual hosts; keys are hostname, and value is the directory relative to "root"
The /api route acts as a proxy to another service; this example also utilizes a config.json file local to the server script, for easy DevOps management
Server status route
This is useful for SysOps / DevOps