Skip to content

A React, Redux (Redux Observable) and Horizon.io Boilerplate

License

Notifications You must be signed in to change notification settings

datuxer/react-horizon

 
 

Repository files navigation

react-horizon

Start a realtime (live and production ready) web app in seconds.

Updated for horizon 2.0.

PS. More updates coming soon

react-horizon Preview

Stack

Installation

$ npm install -g horizon
$ git clone --depth=1 https://github.com/casoetan/react-horizon
$ cd react-horizon
$ npm i
$ hz create-cert
$ mv horizon-cert.pem ./source/server
$ mv horizon-key.pem ./source/server

Realtime DB

Using brew?

$ brew update
$ brew install rethinkdb
$ brew tap homebrew/services
$ brew services start rethinkdb

Run

$ npm start # starts app in dev mode
$ npm run prod # starts server in production mode
$ npm run build # builds source files in .build/
$ node .build/server.bundle.js # starts server (after you built with npm run build)

This will start a server listening on https://localhost:3000 for dev (Allow https for localhost). You can change the port in config/page.js or by setting the PORT environment variable.

Contributing

Pull Requests are very welcome!

Thanks

License

(MIT)

About

A React, Redux (Redux Observable) and Horizon.io Boilerplate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.6%
  • CSS 12.4%