GithubHelp home page GithubHelp logo

react-redux-boilerplate's Introduction

react-redux-boilerplate

Ready to use boilerplate project with React Redux and Webpack

Requirements:

  • Tools: text editor like Sublime Text
  • NodeJS v6.2.2
  • Npm v3.9.5

Project stup:

Once all requirements is setup, run these command to setup project depedences:

cd path\to\project
npm install

Development

For development, the environment designed to serving end to end from testing, linting and automatically reload, all in one command:

npm run start

Building

For build project to deploy, run this command

npm run build

Testing

Running all test cases:

npm run test

You can also run all test cases in watch mode

npm run test:watch

Style guide

This project follow AirBnB ES6/React style guide. If you need more information about the rules, follow the reference bellow

Airbnb Style Guide for ES6
Airbnb Style Guide for React

Project structure


dist/                   // Deployed artifacts
src/ 
  actions/              // Declare all actions in application
    actionTypes.js      // Store constants for all action types
  api/                  // Mock api for development purpose 
  components/           // All React components goes here
    templates/          // Quick template contain boilerplate code for Stateless and Redux container components
    App.js              // Application root components
  reducers/             // Declare all reducers in application
    index.js            // Root reducers
    initialState.js     // Declare initial states
  selectors/            // Contain all maping/transforming logic that will be utilize in components logic
  store/                // Redux store declaration
  styles/               // Stylesheet codes goes here
  tools/                // Infrastructure scripts
    build.js            // Compiles all sources in /src folder to deployable package into /dist
    buildHtml.js        // Generate html to /dist on when compiles
    distServer.js       // Minimal express server serves compiled code in /dist
    srcServer.js        // Minimal express server serves code in /src for development
    startMessage.js     // A simple message indicate development server is starting
    testSetup.js        // Infrastructure setup test environment for React
webpack.config.dev.js   // Webpack configuration script in development mode
webpack.config.prod.js  // Webpack configuration script in production mode 

License

(MIT License)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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.