react-horizon-example
react-horizon-example copied to clipboard
Example React application built with React Horizon connector to horizon.io realtime backend
Example React application built with React Horizon connector to horizon.io realtime backend.
It is a simple movie tickets online booking application which allows you to see seats availibility in realtime.

How to run
- Make sure you have installed RethinkDB and Horizon's CLI
- Clone this repository
- Install dependencies
$ npm i - Start React application build
$ npm start - Start Horizon server by executing the following command in
serverdirectory$ hz serve --dev - Open http://127.0.0.1:8181 in multiple tabs in your browser
- Call
generateSeats()function in browser's console to fill in database table with initial data