-
Notifications
You must be signed in to change notification settings - Fork 1
Home
backend server for Benri, primarily built with the Falcon framework.
Fueled by snakebites, and cheap Happoshu
- 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:
- Falcon is 100% tested. All lines of code. Also backed and built by Rackspace Hosting.
- Python is fun and programs can be developed pretty fast with Python
- Falcon is compiled with Cython. Speed Speed Speed!
- To validate json body from requests, we are most likely using Colander. Check out Colander if you have 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.