https://github.com/awinterman/demitasse
A micro-framework for node. Does that even make sense?
https://github.com/awinterman/demitasse
Last synced: 9 months ago
JSON representation
A micro-framework for node. Does that even make sense?
- Host: GitHub
- URL: https://github.com/awinterman/demitasse
- Owner: AWinterman
- Created: 2013-05-06T05:53:33.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-04T04:57:49.000Z (about 13 years ago)
- Last Synced: 2025-03-01T06:28:44.028Z (over 1 year ago)
- Language: JavaScript
- Size: 449 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Demitasse #
A [flask][0]-inspired microframework for nodejs.
Uses event based logic to handle routing.
## Usage: ##
In your index.js file, you might have
```javascript
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/
```
[0]: http://flask.pocoo.org/