-
Generators
The
geddy-gen
utility is your friend. Creating an app is a snap withgeddy-gen app
. Create resources and models for your app withgeddy-gen resource
andgeddy-gen model
. -
Flexible DSL for routes
Intuitive syntax for creating routes — just
match
paths and paramsto
controllers and actions. Set up resource-based routes with the uber-simpleresource
, or letgeddy-gen
do it for you. -
Content negotiation
Serve out your RESTful resources in whatever format you want — HTML, JSON, even XML (if you're into that type of thing). Geddy looks at the file extension and the accept-header, and does the right thing.
-
Templates and partials
Geddy does EJS templating, with recursive partials support. Templates and sub-templates load and render asynchronously. Yes, pluggable templates are on the way for you fans of 'stache, Haml, et al.
-
Models and validations
Should look familiar to users of DataMapper or SQLAlchemy. A simple, intuitive syntax for defining properties and validations — but the code is pure JS, which allows sweet, sweet code-reuse in the browser.
-
JavaScripty goodness
Geddy is built on Node.js, a JavaScript I/O system that uses Google's V8 engine. Node.js is very fast — but you get to use the JavaScript we all know and love (okay, maybe that's stretching it) from the browser.
Get started
Geddy is a web framework for Node.js. Geddy requires version 0.1.94 of Node.js.
Get Geddy from GitHub and install it:
$ ~/work$ git clone git://github.com/mde/geddy.git $ ~/work$ cd geddy $ ~/work$ make && sudo make install
Create a Geddy app
Geddy comes with a utility called geddy-gen
you can use to create an app. Run geddy
to start the server.
$ ~/work$ geddy-gen app bytor Created app bytor. $ ~/work$ cd bytor $ ~/work/bytor$ geddy Server running at http://127.0.0.1:4000/
Community
Geddy is very new, so now is a great time to get involved in the community. You can find Geddy peeps in a variety of places online: