Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (24 sloc) 902 Bytes


Build App

npm install restfuljs -g

restfuljs --help

restfuljs app --help

restfuljs app -d myTestApi -w 'users, projects'

Add resource to existing app

restfuljs add profiles

Bootstrap data

You can easily bootstrap data into the application by running node app --bootstrap from the application directory. This will clear the database and load data from a json file in the data directory for each of the resources.


quick and easy restful responses for expressjs apps


npm install restfuljs

Quick Start

add to express app middleware:


Example uses

as direct callback to mongoose query:

models.user.findById(id, res.tful);

another mongoose query callback example:;

manual call:

res.tful(error, result)