A starter kit which allows you to develop realtime applications in minutes.
Demo: lovli.neschkudla.at
$ git clone git@github.com:flipace/lovli.js.git
$ cd lovli.js
$ npm i
You'll need to have RethinkDB running.
$ 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.
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()
.
If you want to add any vendor javascript or css, you'll likely not want it to be processed by babel or localized by css loader.
Add these scripts to the static/vendor folder and they will use a different loader configuration.
Check out flipace/horizon-react for documentation of the
horizon-react subscribe
function.
The server won't hot reload. It would be possible to implement a restart on file change though.
Pull Requests are very welcome!
If you find any issues, please report them via Github Issues!
(MIT)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型