-
Generators
Geddy gives you an easy way to generate an app-scaffold, and to create models, controllers, or resources with RESTful routes. Super-easy with
geddy app,geddy resource,geddy model, etc. -
Flexible DSL for routes
Simple syntax for defining routes — just
matchpaths and paramstocontrollers and actions. Set up resource-based routes with the uber-simpleresource, or let thegeddy resourcegenerator 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 support for rendering partials. Templates and sub-templates load and render asynchronously. Yes, pluggable templates are possible 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, an asynchronous JavaScript I/O framework that uses Google's V8 engine. Node.js is very fast — but you get to use the JavaScript we all know and love from browser-land.
Get started
Geddy is a web framework for Node.js. Geddy requires version 0.4.x or higher of Node.js, and the Jake JavaScript build tool.
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/
Geddy on GitHub
API docs
http://mde.github.com/geddy/doc
Current version
The version under active development is v0.2.x. Geddy v0.1.x is no longer under active development, and is no longer supported.