-
Generators
The
geddy-genutility is your friend. Creating an app is a snap withgeddy-gen app. Create resources and models for your app withgeddy-gen resourceandgeddy-gen model. -
Flexible DSL for routes
Intuitive syntax for creating routes — just
matchpaths and paramstocontrollers and actions. Set up resource-based routes with the uber-simpleresource, or letgeddy-gendo 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.
Requirements
Geddy requires at least version 0.1.102 of Node.js.
Get Geddy
Download geddy-v0.1.3.tar.gz (2010-08-06)
$ ~/work$ curl -O http://geddyjs.org/dist/geddy-v0.1.3.tar.gz t ~/work$ tar -xvzf geddy-v0.1.3.tar.gz $ ~/work$ cd geddy-v0.1.3 $ ~/work$ make && sudo make install
Or, get the latest Geddy code 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:
- Twitter: geddyjs
- IRC: #node.js on Freenode.net
- GitHub: geddy
- Mailing list: http://groups.google.com/group/geddy