Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Wilson committed Dec 4, 2011
0 parents commit d1fdf7c
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
node_modules
13 changes: 13 additions & 0 deletions app.coffee
@@ -0,0 +1,13 @@
flatiron = require 'flatiron'

app = flatiron.app

app.use flatiron.plugins.http

app.router.get '/', ->
@res.writeHead 200, 'Content-Type': 'text/plain'
@res.end 'Hello World'

app.start 3000


19 changes: 19 additions & 0 deletions app.js
@@ -0,0 +1,19 @@
(function() {
var app, flatiron;

flatiron = require('flatiron');

app = flatiron.app;

app.use(flatiron.plugins.http);

app.router.get('/', function() {
this.res.writeHead(200, {
'Content-Type': 'text/plain'
});
return this.res.end('Hello World');
});

app.start(3000);

}).call(this);
17 changes: 17 additions & 0 deletions package.json
@@ -0,0 +1,17 @@
{
"author": "",
"name": "flatironjs",
"version": "0.0.0",
"repository": {
"url": ""
},
"engines": {
"node": "~0.6.3"
},
"dependencies": {
"coffee-script": "*"
, "flatiron": "*"
, "union": "*"
},
"devDependencies": {}
}
8 changes: 8 additions & 0 deletions readme.md
@@ -0,0 +1,8 @@
flatironjs http template
=======================

# Description

Simple Hello World flatironjs http app


0 comments on commit d1fdf7c

Please sign in to comment.