Skip to content

Commit

Permalink
Updated README, removed console.log from node server.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarcon committed May 6, 2012
1 parent 0bca277 commit df43a4e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
22 changes: 21 additions & 1 deletion README.md
Expand Up @@ -6,13 +6,33 @@ Created during the @5apps_ HTML5 hackathon Saturday 5th – Sunday 6th May 2012.

Generate a soundscape of the area you're looking at on the map then fly around it.

##How to run the demo
First of all clone the Git repository:

git clone git://github.com/mmarcon/htm5Hackathon.git

The demo requires [Node.js](http://nodejs.org) and Express. We implemented a little HTTP server that serves the application and at as a proxy to Deezer as the MP3s hosted in their CDN are not served with the cross-origin flag.

If Express is not already installed:

npm install express

Then

cd node
node proxy.js

Now just point your browser to `http://localhost:8000`, plug in your headphones and enjoy.
The hamster can be controlled with arrow keys, space generates a soundscape for the current area.

##Authors

- Simon Madine - @thingsinjars
- Max Marcon - @mmarcon

##Browser tech used
Web Audio API

Web Audio API. Detailed information can be found at: [https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html](https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html).

##Web services used

Expand Down
1 change: 0 additions & 1 deletion node/proxy.js
Expand Up @@ -19,7 +19,6 @@ app.get('/proxy', function (request, response) {
request.pipe(proxy_request);
});

console.log(path.normalize(__dirname + '../app'));
app.use(express.static(path.normalize(__dirname + '/../app/')));

app.listen(8000);
1 change: 0 additions & 1 deletion node/proxy.localcache.js
Expand Up @@ -28,7 +28,6 @@ app.get('/proxy', function (request, response) {
request.pipe(proxy_request);
});

console.log(path.normalize(__dirname + '../app'));
app.use(express.static(path.normalize(__dirname + '/../app')));

app.listen(8000);

0 comments on commit df43a4e

Please sign in to comment.