Skip to content

Latest commit

 

History

History
65 lines (53 loc) · 1.41 KB

File metadata and controls

65 lines (53 loc) · 1.41 KB

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.