An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

React-Socketio [![Dependency Status](https://david-dm.org/rogr/react-socketio.svg)](https://david-dm.org/rogr/react-socketio) [![devDependency Status](https://david-dm.org/rogr/react-socketio/dev-status.svg)](https://david-dm.org/rogr/react-socketio#info=devDependencies) [![Travis Build](https://api.travis-ci.org/rogr/react-socketio.svg)](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.