Permalink
Browse files

removed main, and /static dir in this branch

  • Loading branch information...
1 parent e8148c1 commit 4b32ddc7350922e13fcf2e1b135ac55b40fed02b @mkrecny mkrecny committed Mar 27, 2012
Showing with 0 additions and 416 deletions.
  1. +0 −1 package.json
  2. +0 −41 static/app.js
  3. +0 −8 static/package.json
  4. +0 −8 static/routes/index.js
  5. +0 −358 static/views/index.html
View
@@ -11,5 +11,4 @@
, "sanitizer": ">0"
, "memcache": ">0"
}
- , "main": "./index.js"
}
View
@@ -1,41 +0,0 @@
-
-/**
- * Module dependencies.
- */
-
-var express = require('express')
-, fs = require('fs');
-
-var app = module.exports = express.createServer();
-
-// Configuration
-
-var static_dir = __dirname + '/../client-build';
-var index = fs.readFileSync(__dirname+'/../client-build/index.html', 'utf8');
-//var gametypes = fs.readFileSync(__dirname+'/../shared/js/gametypes.js', 'utf8');
-
-app.configure(function(){
- app.use(express.bodyParser());
- app.use(express.methodOverride());
- console.log('serving static from ', static_dir);
- app.use(express.static(static_dir));
-});
-
-app.configure('development', function(){
- app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
-});
-
-app.configure('production', function(){
- app.use(express.errorHandler());
-});
-
-// Routes
-
-app.get('/', function(req, res){
- res.end(index);
-});
-/*app.get('/shared/js/gametypes.js', function(req, res){
- res.end(gametypes);
-});*/
-app.listen(8001);
-console.log("Express server listening on port %d in %s mode", app.address().port, app.settings.env);
View
@@ -1,8 +0,0 @@
-{
- "name": "application-name"
- , "version": "0.0.1"
- , "private": true
- , "dependencies": {
- "express": "2.5.8"
- }
-}
View
@@ -1,8 +0,0 @@
-
-/*
- * GET home page.
- */
-
-exports.index = function(req, res){
- res.render('index', { title: 'Express' })
-};
Oops, something went wrong.

0 comments on commit 4b32ddc

Please sign in to comment.