react-horizon-example
react-horizon-example copied to clipboard
A demo realtime chat application created using React and RethinkDB/Horizon
React Horizon Demo
A demo realtime chat application created using React, Redux and Horizon/RethinkDB
Note: This is just an experimental project
What’s Inside?
It is a simple chat application build on top of React and RethinkDB/Horizon and many amazing community projects, such as:
Installation
- Install npm packages
npm install
hz init
Build and run the server
Start rethinkdb
rethinkdb
RethinkDB Administration Console: http://localhost:8080.
Build server app
npm run build-server
Run server app
- Development
node ./build/server.js
- Production
NODE_ENV=production node ./build/server.js
The default server address is http://localhost:8181. You can change the setting in the src/config.js
Build and run the client app
Development
npm start
Visit http://localhost:3000 to see the result. You can test it in different browser instances.
Production
npm run build
Contributing
Contributions are welcome.