https://github.com/rog/react-socketio
Experiment of using Socket.io with Koa and React.
https://github.com/rog/react-socketio
Last synced: over 1 year ago
JSON representation
Experiment of using Socket.io with Koa and React.
- Host: GitHub
- URL: https://github.com/rog/react-socketio
- Owner: rog
- Created: 2015-12-29T18:55:25.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-05T06:16:45.000Z (over 10 years ago)
- Last Synced: 2025-01-23T07:45:14.173Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 38.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
React-Socketio [](https://david-dm.org/rogr/react-socketio) [](https://david-dm.org/rogr/react-socketio#info=devDependencies) [](https://travis-ci.org/rogr/react-socketio)
=====
Experiment of using [Socket.io](https://github.com/socketio/socket.io) with [Koa](https://github.com/koajs/koa) and [React](https://github.com/facebook/react).
Clone the repo and switch into the project folder:
```
git clone git@github.com:rogr/react-socketio.git && cd react-socketio
```
And install the dependencies of the project:
```
npm install
```
To compile the code and run the server:
```
npm start
```
## Router
- `127.0.0.1:3000/`
Add an Audience member to answer questions.
- `127.0.0.1:3000/speaker`
Add a Presentation name and a Speaker member.
- `127.0.0.1:3000/board`
Display a bar graph of the answers by the audience.
- `127.0.0.1:3000/anyother`
Default 404 page.
## License
React-Socketio is released under the Beerware License:
> "THE BEER-WARE LICENSE" (Revision 42):
>
> [Rogelio Alberto](https://github.com/rogr) wrote this file. As long as you retain this notice you
> can do whatever you want with this stuff. If we meet some day, and you think
> this stuff is worth it, you can buy me a beer in return.
>
> Rogelio Alberto - @rogr.