Permalink
Browse files

Create nodejs server

  • Loading branch information...
1 parent af0c89f commit 7c46785fe4a7c8f46dde1ed0b143cf3669626803 Irvin Ocanto committed Apr 20, 2013
Showing with 20 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +11 −0 package.json
  3. +0 −2 { → public}/spin-wheel.html
  4. +8 −0 web.js
View
1 .gitignore
@@ -1,3 +1,4 @@
+node_modules/
lib-cov
*.seed
*.log
View
11 package.json
@@ -0,0 +1,11 @@
+{
+ "name": "spin.it",
+ "version": "0.0.1",
+ "dependencies": {
+ "connect": "2.x"
+ },
+ "engines": {
+ "node": "0.8.x",
+ "npm": "1.1.x"
+ }
+}
View
2 spin-wheel.html → public/spin-wheel.html
@@ -7,5 +7,3 @@
<h1>Spin Wheel!</h1>
</body>
</html>
-
-
View
8 web.js
@@ -0,0 +1,8 @@
+var connect = require('connect'),
+ port = process.env.PORT || 8001;
+
+connect.createServer(
+ connect.static(__dirname + '/public')
+).listen( port );
+
+console.log("Listening on " + port);

0 comments on commit 7c46785

Please sign in to comment.