神刀安全网

lovli.js – a lovely starter kit for react+redux+horizon

lovli.js - a lovely starter kit for react+redux+horizon lovli.js - a lovely starter kit for react+redux+horizon lovli.js - a lovely starter kit for react+redux+horizon

lovli.js - a lovely starter kit for react+redux+horizon

lovli.js

A starter kit which allows you to develop realtime applications in minutes.

lovli.js - a lovely starter kit for react+redux+horizon

Demo: lovli.neschkudla.at

Stack

  • facebook/react – View
  • reactjs/redux – App State
  • rethinkdb/horizon – Realtime Database Sync
  • flipace/horizon-react – Connect View + Data
  • gaearon/react-hot-loader – Hot Reloading of React Components
  • webpack/webpack – Builds & Dev-Server

Installation

$ git clone git@github.com:flipace/lovli.js.git $ cd lovli.js $ npm i

You’ll need to have RethinkDB running.

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 port 3000 . You can change the port in config/page.js or by setting the PORT environment variable .

Configure horizon

If you want to configure the props for the horizon client, you can do that by passing a configuration object as the first parameter to HorizonConnector() in source/client/containers/Root.js and the target element as the second parameter.

The props you provide there will be passed to horizon() .

Contributing

Pull Requests are very welcome!

If you find any issues, please report them viaGithub Issues!

License

(MIT)

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » lovli.js – a lovely starter kit for react+redux+horizon

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址