an application framework for Card-Catalog
var recess = require'recess'manager = require'catalog_manager';var app = recess;appset'connection' conn;appcardmanager;appon'ready'applisten3000;;appcreate;
$ npm install schoolyard-recess
Recess is simply a helper for building an application on top of Card-Catalog. It provides a clean interface to setting up categories and cards as well as some helpers attached to the request and response object.
Available helper methods on a recess object are:
set: options for instantiating a Category
before: middleware function to run before dispatching to a Category instance.
card: a Card to use in your Card-Catalog app.
create: initialize a catalog by loading all the available cards and setting up a template cache. Emits a
ready event when the catalog has been built.
listen: create an http server and listen on a given port.
For more information view the documentation on the Card-Catalog project
All tests are written in mocha and should be run with npm.
$ npm test
Recess is heavily based off and inspired by the work done by TJ Holowaychuk and all the other contributers to Express and Connect. It borrows code from both the Express and Connect projects and tries to give attribution where code is used.