Skip to content

Commit

Permalink
node server tutorial implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
emileswarts committed Jan 12, 2012
0 parents commit dced684
Show file tree
Hide file tree
Showing 19 changed files with 1,003 additions and 0 deletions.
Empty file added .htaccess
Empty file.
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var server = require("./server");
var router = require("./router");
var requestHandlers = require("./requestHandlers");

var handle = {}
handle["/"] = requestHandlers.start;
handle["/start"] = requestHandlers.start;
handle["/upload"] = requestHandlers.upload;

server.start(router.route, handle);
17 changes: 17 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<title>My aquarium</title>
<script type='text/javascript' src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type='text/javascript'>
$(document).ready(function() {
setInterval(function(){
$('#webcam_img').attr({'src': "/webcam/webcam.jpeg?foo=" + new Date().getTime()});
}, 6000);
});
</script>
</head>
<body style="background:black">
<center style='margin-top:50px'><img id="webcam_img" src="/webcam/webcam.jpeg" /></center>
</body>
</html>
Binary file not shown.
Binary file not shown.
7 changes: 7 additions & 0 deletions node_modules/url/node_modules/querystring/History.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions node_modules/url/node_modules/querystring/Readme.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions node_modules/url/node_modules/querystring/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

108 changes: 108 additions & 0 deletions node_modules/url/node_modules/querystring/querystring.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
203 changes: 203 additions & 0 deletions node_modules/url/node_modules/querystring/tests/test-querystring.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dced684

Please sign in to comment.