A micro-framework for node. Does that even make sense?
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
lib
tests
.gitignore
README.md
index.js
package.json

README.md

Demitasse

A flask-inspired microframework for nodejs.

Uses event based logic to handle routing.

Usage:

In your index.js file, you might have

var Demi = require("demi")
  , demi = new Demi("./public")

demi.route("/")
    .on("GET", function(req, resp){
      resp.write("hello world")
    })
       

Then from the command line you might run demi run, navigate to localhost:8000, and view the rendered string. This will handle the streaming of response and the data type etc. for you.

Install

npm install demi

Examples

There are examples in the examples/ directory. Run them with

node examples/<example-name>