Giter Site home page Giter Site logo

futurerx's Introduction

โš› futureRX

๐Ÿš€ The futuristic stack to create universal React applications with MobX as state manager. With supporting async data fetching out of the box on server side rendering.

dependencies devDependencies CircleCI codecov

WARNING: This is a proof of concept running on bleeding edge libraries, it has not been running in production yet. If you do contact me.

This project aim frontend applications which are using an external API to work with data. This boilerplate does not include an API with it to fetch/persist data.

Libraries used

nodejs ^6.2 / npm ^3.9

Setup

  • $ git clone -o upstream https://github.com/iam4x/futureRX.git [myApp]
  • $ cd [myApp] && npm install

Run

  • dev

    • $ npm run dev OR
    • $ PORT=xxxx npm run dev
    • (Append ?debugRender to your URL to enable why-did-you-update)
  • test

    • $ npm test OR
    • $ npm test -- --watch
  • build

    • $ NODE_ENV=production npm run build
    • $ NODE_ENV=production node dist/server

Update

  • $ git fetch upstream
  • $ git merge upstream/master
  • $ npm install

TODO

  • allow override of listening ports via config (7e9ae4a)
  • styles with css-modules and global styles (#1)
  • test with ava and airbnb-enzyme (#2)
  • webpack build config
  • production server optimization
  • refactor server code

Learn more

futurerx's People

Contributors

greenkeeperio-bot avatar iam4x avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

futurerx's Issues

How about using preact instead of react?

How about using preact instead of react ? That's what I'm thinking about recently.
And I prefer to Semantic-UI rather than bootstrap.
What's your opinion? Thanks.

Server html differs from client html

Seems that universal support is broken

warning.js:44 Warning: React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:
 (client) " data-reactid="1"><div data-reactid="2"
 (server) " data-reactid="1"><nav class="navbar nawarning @ warning.js:44_mountImageIntoNode @ ReactMount.js:473mountComponentIntoNode @ ReactMount.js:112perform @ Transaction.js:138batchedMountComponentIntoNode @ ReactMount.js:126perform @ Transaction.js:138batchedUpdates @ ReactDefaultBatchingStrategy.js:63batchedUpdates @ ReactUpdates.js:98_renderNewRootComponent @ ReactMount.js:285_renderSubtreeIntoContainer @ ReactMount.js:371render @ ReactMount.js:392_callee2$ @ universal-render.js:127tryCatch @ runtime.js:62invoke @ runtime.js:336prototype.(anonymous function) @ runtime.js:95step @ universal-render.js:41(anonymous function) @ universal-render.js:41(anonymous function) @ universal-render.js:41_default @ universal-render.js:245(anonymous function) @ index.js:31(anonymous function) @ app-DEFAULT.js:4730__webpack_require__ @ app-DEFAULT.js:654fn @ app-DEFAULT.js:84(anonymous function) @ multi_app:4(anonymous function) @ app-DEFAULT.js:10674__webpack_require__ @ app-DEFAULT.js:654(anonymous function) @ app-DEFAULT.js:701(anonymous function) @ app-DEFAULT.js:704
client.js:58 [HMR] connected

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.