Skip to content
node.js based API server , for an example and real usage please refer to todo-server project
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
examples
lib
.gitignore
.npmignore
.travis.yml
History.md
LICENSE
README.md
index.js
package.json

README.md

build status

aonx

Highly opinionated server framework based on node.js, express, mongoose

Following are the standard response codes

  • http://www.iana.org/assignments/http-status-codes/http-status-codes.xml
  • 2xx - success
    • 201 - created
    • 202 - accepted
    • 204 - no content
  • 4xx - request failure
    • 400 - bad request
    • 401 - unauthorized (authentication)
    • 403 - forbidden (authorization)
    • 404 - not found
    • 405 - method not allowed
    • 406 - not acceptable
    • 409 - conflict
    • 416 - invalid range
  • 5xx - internal server failure
    • 500 - internal server error / op timed out
    • 503 - server busy

Features

  • Wrapper over ExpressJS, primarily targetted for an API server
  • support for http/https
  • support jsonp
    • methods PUT/DELETE/POST can be forwarded via a _method param
  • Easily connect to mongodb and have routes configured
  • Everything is driven by simple configuration
  • Run the server in cluster mode

ALPHA product, use at your risk, please refer to examples and todo-server

Todo

  • connect 2.x has compress, once available remove gzippo
  • Add mocha unit tests
  • Add authentication/authorization
  • Rate Limiting
  • API version support
  • Usage reports
  • Monitoring
  • Clustering the server
  • Input validation ? (json/xml)
Something went wrong with that request. Please try again.