Code Monkey home page Code Monkey logo

react-flux-boilerplate's Introduction

React Pirate Rrrr(React, Reflux & React-Router)

What is React Pirate

React Pirate is a boilerplate/starter kit for React/Flux Single Page Apps. It provides a starting point that follows conventions and best practices recommended by production applications.

Architecture

This application uses reflux for data flow which is a simplified version of the flux architecture. The main difference being that the dispatcher being moved into the actions themselves with singleton implementations removed. This article Deconstructing ReactjJS's Flux gives a great overview of the differences between a traditional flux implementation and reflux

Directory Layout

.
├── /app/                       # The source code of the application
│   ├── /actions/               # Action creators that allow to trigger a dispatch to stores
│   ├── /assets/                # Static files which are copied to ./build on compile
│   ├── /components/            # React components
│   │   └── /feature/           # React components grouped together according to feature
│   │       ├── /__tests__/     # Tests associated with the given feature
│   │       ├── feature.scss    # Styling associated with the given feature
│   │       └── feature.jsx     # React specific code for a given feature
│   ├── /constants/             # Enumerations used in action creators and stores
│   ├── /stores/                # Stores contain the application state and logic
│   └── /app.jsx                # The application's main file (entry point)
├── /build/                     # The folder for compiled output
├── /config/                    # Configuration files for Webpack, Jest etc.
├── /gulp/                      # gulp tasks for the project serperated by task type
├── /node_modules/              # 3rd-party libraries and utilities
├── gulpfile.js                 # Entry point into gulp tasks
└── package.json                # The list of 3rd party libraries and utilities

Getting Started

git clone https://github.com/celerityweb/react-flux-boilerplate.git
cd react-flux-boilerplate
npm install

How to Build & Run

gulp

How to Test

Run unit tests powered by Jest with the following npm command: npm test

Heavily Influenced By:

react-starter-kit

react-flux-boilerplate's People

Contributors

bryant1410 avatar dancashman avatar micahfulton avatar

Watchers

 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.