Skip to content

Commit

Permalink
clean up stuff for node-jitsu
Browse files Browse the repository at this point in the history
  • Loading branch information
fat committed Jun 17, 2011
1 parent 5e47f7d commit 94a6e1b
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 20 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
./node_modules
.DS_Store
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ boom! all server dependencies installed...

Oh crap?! something went wrong with the twitter-node dependecy?? If that's the case, don't sweat, it's a known issue: [dumb issue](http://stackoverflow.com/questions/4407531/twitter-node-failing-to-build-node-js-npm-install-twitter-node). The current fix, is to manually clone the repo [here](https://github.com/patmcnally/twitter-node) into a local directory, cd into it, then run "npm install .". If you run into any problems with that feel free to message me.

Next you need to get your client-side decencies (socket.io). To do that:

git submodule update --init

This will add socket.io's magic to your public/javascript folder. awesome.


RUNNING THIS LOCALLY
====================

Expand All @@ -35,4 +28,4 @@ this will start up space tweet on port 3000... so go to your browser:

localhost:3000

hopefully you should see space tweet!! hooray!
hopefully you should see space tweet!! hooray!
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{
"name": "space-tweet",
"description": "tweets in SPPPACCEEE",
"version": "0.0.2",
"version": "0.0.2-5",
"author": "Jacob Thornton <@fat>",
"main": "./app.js",
"repository": {
"type": "git",
"url": "https://jacobthornton@github.com/jacobthornton/space-tweet.git"
"url": "git@github.com:fat/space-tweet.git"
},
"engine": [ "node >=0.4.0" ],
"engine": [
"node >=0.4.0"
],
"dependencies": {
"socket.io": ">= 0.6.16",
"twitter-node": ">= 0.0.2",
"express": "2.0.0beta3",
"express": ">= 2.3.0",
"jade": "0.8.6"
}
}
1 change: 0 additions & 1 deletion public/javascript/socket-io
Submodule socket-io deleted from ec0237
4 changes: 2 additions & 2 deletions app.js → server.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ app.use(express.static(__dirname + '/public'));
app.get('/', spaceTweet.index);

//Run
app.listen(3000);
app.listen(80);

//It's Log! Log! Log! Better than bad, it's good!
console.log('Beware of the invasion on: 3000');
console.log('Beware of the invasion on: 80');
4 changes: 2 additions & 2 deletions views/layout.jade
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ html
title TWIITTTER ISSS INNVVAADDDINNNGGG YOUUU!!
script(src="/javascript/mootools/mootools.js")
script(src="/javascript/mootools/mooCanvas.js")
script(src="/javascript/socket-io/socket.io.js")
script(src="/socket.io/socket.io.js")
script(src="/javascript/app.js")
link(rel="stylesheet", href="/stylesheets/app.css")
body!= body
body!= body

0 comments on commit 94a6e1b

Please sign in to comment.