Restful todo app with silex and angular.js