Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Breed committed Nov 27, 2011
0 parents commit 6621992
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .gitignore
@@ -0,0 +1,22 @@
# Numerous always-ignore extensions
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.vi
*~
*.sass-cache

# OS or Editor folders
.DS_Store
.cache
.project
.settings
.tmproj
nbproject
Thumbs.db

node_modules
1 change: 1 addition & 0 deletions Procfile
@@ -0,0 +1 @@
web: ./bin/cloudy
7 changes: 7 additions & 0 deletions bin/cloudy
@@ -0,0 +1,7 @@
#!/usr/bin/env node

var
strata = require('strata'),
app = require('../lib/app');

strata.run(app, { port: process.env.port || 9001 });
11 changes: 11 additions & 0 deletions lib/app.js
@@ -0,0 +1,11 @@
var strata = require("strata");
var app = new strata.Builder();

app.use( strata.contentType );
app.use( strata.contentLength );

app.run(function (env, callback) {
callback(200, {}, 'yo');
});

module.exports = app;
5 changes: 5 additions & 0 deletions lib/index.js
@@ -0,0 +1,5 @@
var
strata = require('strata'),
app = require('./app');

strata.run( app );
17 changes: 17 additions & 0 deletions package.json
@@ -0,0 +1,17 @@
{
"author": "wookiehangover",
"name": "cloudy",
"description": "upload stuff to somewhere",
"version": "0.0.0",
"repository": {
"url": ""
},
"main": "./lib/index.js",
"bin": { "cloudy": "./bin/cloudy" },
"engines": {
"node": "~0.6.2"
},
"dependencies": {
"strata": "~0.8.2"
}
}

0 comments on commit 6621992

Please sign in to comment.