-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
90 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# socket.io-redis-sample | ||
|
||
This is simple node.js application with [Express.js 4.x](https://github.com/visionmedia/express), [Socket.IO 1.x](https://github.com/automattic/socket.io) and [socket.io-redis](https://github.com/Automattic/socket.io-redis). | ||
|
||
## Usage | ||
|
||
``` | ||
$ redis-server & | ||
$ git clone https://github.com/stoshiya/socket.io-redis-sample.git | ||
$ cd socket.io-redis-sample | ||
$ npm install | ||
$ PORT=3000 node app.js & | ||
$ PORT=3001 node app.js & | ||
``` | ||
|
||
## License | ||
|
||
MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
{ | ||
"name": "socket.io-RedisStore-sample", | ||
"version": "0.0.1", | ||
"name": "socket.io-redis-sample", | ||
"version": "0.0.2", | ||
"private": true, | ||
"scripts": { | ||
"start": "node app" | ||
}, | ||
"dependencies": { | ||
"config": "^0.4.36", | ||
"express": "^3.10.3", | ||
"jade": "*", | ||
"opts": "*", | ||
"socket.io": "^0.9.17" | ||
"body-parser": "^1.3.0", | ||
"cookie-parser": "^1.1.0", | ||
"express": "^4.4.1", | ||
"jade": "^1.3.1", | ||
"morgan": "^1.1.1", | ||
"opts": "^1.2.2", | ||
"socket.io": "^1.0.4", | ||
"socket.io-redis": "^0.1.3" | ||
}, | ||
"description": "This is simple node.js application with socket.io and RedisStore.", | ||
"description": "This is simple node.js application with Express.js 4, Socket.IO 1.x and socket.io-redis.", | ||
"main": "app.js", | ||
"devDependencies": {}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/stoshiya/socket.io-RedisStore-sample.git" | ||
"url": "git://github.com/stoshiya/socket.io-redis-sample.git" | ||
}, | ||
"author": "Toshiya SAITOH <[email protected]>", | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
extends layout | ||
|
||
block content | ||
h1= message | ||
h2= error.status | ||
pre #{error.stack} |