Coder Social home page Coder Social logo

caoyi0905 / lovli.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flipace/lovli.js

0.0 2.0 0.0 1.67 MB

A boilerplate for developing react+redux applications with rethinkdb/horizon as realtime database and express for the server.

License: MIT License

JavaScript 90.62% CSS 9.38%

lovli.js's Introduction

bitHound Overall Score bitHound Dependencies bitHound Code

lovli.js

lovli.js

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

lovli.js Preview

Demo: lovli.neschkudla.at

Stack

Installation

$ git clone --depth=1 https://github.com/flipace/lovli.js
$ 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().

FAQ

How to add vendor scripts and css?

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.

How to configure data subscriptions?

Check out flipace/horizon-react for documentation of the horizon-react subscribe function.

Why won't the server reload?

The server won't hot reload. It would be possible to implement a restart on file change though.

Contributing

Pull Requests are very welcome!

If you find any issues, please report them via Github Issues!

License

(MIT)

lovli.js's People

Contributors

flipace avatar caoyi0905 avatar dax70 avatar eladams avatar haukurk avatar grigio avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.