Coder Social home page Coder Social logo

react-redux-starter-seed's Introduction

React-Redux-Saga Seed

A really basic and simple seed project that can be used to start new React Redux project.

Basic structure is generated from https://github.com/facebookincubator/create-react-app

Project Basic Structure

The project tries to use folder structure as suggested by https://github.com/erikras/ducks-modular-redux.

Under src/ folder:

  • containers: views and layouts components.
  • state: modules and middlewares.
    • modules: each of the module inside here contains reducers, actions, sagas (operations) and test, basically all redux related files. Module is grouped by one concept only, e.g. Session, Product etc.
    • middlewares: any middleware configuration goes here.
    • store.js: this is the main file that contains the function to configure a new redux store, configuring reducers, middlewares, routing etc.

Setup

Check out the project and cd into the project folder. Run yarn install.

Run Seed

yarn run dev

Run Test

yarn run test

Note that scripts/test.js checks a process.env.CI ENV , if it is ture, the test will not run --watch mode, otherwise the test runs as watch mode by Jest.

Run Build

yarn run build produces a /build folder that can be served.

Build Scripts

Under scripts/, there are build.js, dev.js and test.js. They are used in package.json as npm scripts.

react-redux-starter-seed's People

Contributors

haolinj avatar

Watchers

James Cloos avatar  avatar

Forkers

tim-stasse

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.