Git Product home page Git Product logo

react-redux-boilerplate's Introduction

Isomorphic React Redux Boilerplate

Build Status

Current Boierplate made for rship

RSHIP (Rocket Ship) – simple and effective tool for developing and building isimorphic web application.

Current appilcation is CLI (Command Line Interface) which avaliable by $ rship

Overview

In an isomorphic application, the first request made by the web browser is processed by the server while subsequent requests are processed by the client.

Architecture an Isomorphic App

Architecture by Airbnb

Features

Goals

  • SEO compability;
  • Similar codebase over all project;
  • Performance;
  • Maintainability;

More details at airbnb blog

Project structure

├── app
│   ├── client
│   │   └── assets                          # assets folder
│   │       └── stylesheets                 # global stylesheets
│   │           ├── app.styl
│   │           └── vendors                 # any vendors styles
│   │               └── reset.styl
│   ├── client.js
│   ├── server                              # server side entrypoint
│   │   ├── layouts                         # application layouts
│   │   │   └── Main.js
│   │   └── middlewares                     # server middlewares for any logic
│   │       ├── logger.js                   # logger middleware, enabled only for development NODE_ENV
│   │       └── router.js                   # server router handling
│   ├── server.js                           # client side entrypoint
│   └── shared                              # isomorphic code
│       ├── actions                         # data fetchers
│       │   └── tracks
│       │       ├── __tests__
│       │       │   └── actions.test.js
│       │       └── index.js
│       ├── components                      # "dumb" components folder
│       │   └── Logo
│       │       ├── __tests__
│       │       │   └── component.test.js
│       │       ├── _styles.styl
│       │       └── index.js
│       ├── constants
│       │   ├── global.js
│       │   └── tracks.js
│       ├── containers                      # smart components folder, as container
│       │   ├── Layouts
│       │   │   └── Main
│       │   │       ├── _styles.styl
│       │   │       └── index.js
│       │   └── Pages
│       │       ├── Index
│       │       │   ├── _styles.styl
│       │       │   └── index.js
│       │       └── Track
│       │           ├── _styles.styl
│       │           └── index.js
│       ├── helpers                        # some shared helpers
│       │   ├── fetchData.js
│       │   └── store.js
│       ├── reducers                       # reducers, @see redux
│       │   ├── index.js
│       │   └── tracks
│       │       ├── __tests__
│       │       │   └── reducer.test.js
│       │       └── index.js
│       └── routes.js
├── config
│   ├── jest
│   │   ├── CSSStub.js
│   │   ├── FileStub.js
│   │   └── GlobalMocks.js
│   └── webpack                           # webpack configs for rship
│       ├── client.config.js
│       └── server.config.js
├── package.json
├── ship.config.js
└── yarn.lock

License

MIT

react-redux-boilerplate's People

Contributors

mrsum avatar

Watchers

James Cloos avatar Alexander Shved 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.