Git Product home page Git Product logo

page-stack's Introduction

ParcelJS + TypeScript + React + Redux-observable

Description

Architecture with React + ParcelJS + Typescript + Redux-observable. (And testing with Jest, of course)

PD: This is not similar to create-react-app in the sense that there is no hidden configuration in node_modules, it is based in ParcelJS, a bundler ready to automate most things, looking to have zero configuration, even targeting large scale projects.

You should have a look at https://parceljs.org/ it will surprise you.

Install

npm install

Usage

Dev Server with Hot Reloader:

npm start

Build:

npm run build

Test:

npm test

State Flow

  • Actions
    • Actions are everything that changes the State, you emmit actions by using the action creators. Look @connect decorator to see how to pass them to your components
  • Reducers
    • They are any action that do not modify the State, the best exampe is a logger.
  • Selectors
    • These are functions that receive the state and an Action, and return a new state modified by that action.
  • Epics
    • They are functions that listen to an ActionsObservable and react to them doing side effects. The most powerfull way for making async actions with redux such as ajax requests.

page-stack's People

Stargazers

M-Fawaz Orabi avatar  avatar

Watchers

James Cloos avatar M-Fawaz Orabi 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.