turtle i/o

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

Getting Started

  1. Install turtle.io from npm: "> npm install turtle.io"
  2. 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
  3. [Optional] Edit config.json in the turtle.io directory to configure server defaults; you can override defaults by passing server.start() an Object

Documentation

API documentation is available at api.turtle.io, please visit the wiki on GitHub for configuration settings & examples.

Support

If you're having problems, use the support forum at CodersClan.

Examples

Common Setup

Virtual hosts; keys are hostname, and value is the directory relative to "root"

Proxy routes

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

Fork me on GitHub