Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.
kelvintaywl edited this page Jan 1, 2015 · 3 revisions

Snakebite

backend server for Benri, primarily built with the Falcon framework.

Fueled by snakebites, and cheap Happoshu

Notes on Specification

  • Snakebite will be a RESTful API server, built with the best practices of RESTful API services in mind.

To read more about how a RESTful API server typically handles requests, see this article.

  • JSON over XML when it comes to responses.

  • Falcon as how framework of choice.

Reasons:

  1. Falcon is 100% tested. All lines of code. Also backed and built by Rackspace Hosting.
  2. Python is fun and programs can be developed pretty fast with Python
  3. Falcon is compiled with Cython. Speed Speed Speed!

What SnakeBite is not

Because Snakebite is built to be simple-minded, it only understands CRUD and does the usual validations around CRUD operations (before persisting data into the DB).

As such, the API calls allowable on Snakebite are limited (i.e., probably does not support URL methods like ' PUT restaurants/update_name').

Hence, we are likely to build a Node JS server that sits inbetween Snakebite and the client applciation (e.g., iOS app, frontend web app built with AngularJS). Nicholas C. Zakas (of Normalize.css fame) describes this design here.

node as a middleware

Clone this wiki locally