Archived
Missing server reqs
This commit is contained in:
1 parent
523c026f62
commit
7c9c13cf50
2 files changed
+8
-5
No files matched your search
+4
-2
@@ -2,7 +2,7 @@
|
||||
"name": "indoormap",
|
||||
"version": "0.0.1",
|
||||
"description": "Indoor map of Chateau Neuf",
|
||||
"main": "index.js",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
@@ -14,11 +14,13 @@
|
||||
"brfs": "~1.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"express": "^4.3.1",
|
||||
"node-sass": "latest",
|
||||
"grunt": "latest",
|
||||
"grunt-autoprefixer": "latest",
|
||||
"grunt-contrib-watch": "latest",
|
||||
"grunt-sass": "latest",
|
||||
"matchdep": "latest"
|
||||
"matchdep": "latest",
|
||||
"morgan": "^1.1.1"
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,10 @@
|
||||
var express = require('express'),
|
||||
logger = require('morgan'),
|
||||
http = require('http');
|
||||
|
||||
var app = express()
|
||||
.use(express.logger('dev'))
|
||||
.use("/", express.static(__dirname));
|
||||
var app = express();
|
||||
app.use(logger({ format: 'dev'}));
|
||||
app.use("/", express.static(__dirname));
|
||||
|
||||
console.log("http://localhost:3000");
|
||||
http.createServer(app).listen(3000);
|
||||
Reference in new issue
Block a user