/ssr-create-react-app

create-react-app with React Router v4 server-side-rendering

Primary LanguageJavaScript

dependencies Status

SSR react-app

This is my React universal application boilerplate based on the Create React App bootstrap.

WIP : im still working on it, it is ready to use if you want to develop a server-rendered React app with it.

Working on:

  • Add Redux with reducers hot reloading and redux serverside implementation
  • Add flow types
  • Connect API through Redux and React-Router v4

Feedbacks are welcome !

I will develop doc ASAP

Stacks

Folder Structure

my-app/
  README.md
  node_modules/
  package.json
  client/
    index.html
  public/
    imgs/
    favicon.ico
  config/
    webpack
    paths & env
    jest/
  scripts/
    build.js
    dev.js
    serv.js
    test.js
  server/
    express/
    middlewares/
    entry.js
    index.js
  src/
    components/
      component/
    config/
      index.js
    containers/
      container/
        meta.js
        index.js
    ressources/
    index.js
    Routes.js

Running the app localy

Requirement: Node.js 5.x or newer

Clone the repo:

$ git clone https://github.com/toinelin/ssr-create-react-app

Install dependencies :

$ cd ssr-create-react-app && yarn

Run dev:

$ yarn dev

Run build:

$ yarn build && yarn start