Skip to content

A Boilerplate for React and Reflux using ES6 (where possible) (Enzyme Tests)

Notifications You must be signed in to change notification settings

startupsandcode/React-Reflux-ES6

Repository files navigation

#Boilerplate for React/Reflux/Enzyme

##Steps to run:

  1. Clone the repo (git clone https://github.com/lotekmedia/React-Reflux-ES6)
  2. cd React-Reflux-ES6
  3. npm i
  4. npm start

Tada! Magic

##Steps to create from scratch:

  1. Create GitHub (clone from BoilerPlate)

  2. Create .gitignore

  3. npm init

  4. npm install --save-dev babel-cli babel-loader babel-core babel-preset-es2015 babel-preset-react less

  5. npm install --save-dev enzyme react-addons-test-utils webpack colors webpack-dev-server file-loader npm-run-all

  6. npm install --save react react-dom react-router immutable reflux

  7. Create Folder Structure

.gitignore
.babelrc
package.json
webpackDev.config.js
webpackPrd.config.js
|
└──tools
|  └──testSetup.js
|
└──tests
|  └──index.test.js
|
└──src
   └── app.jsx
   └── index.html
   └── main.jsx
   |
   └── fonts
   |
   └── images
   |
   └── less
   |
   └── libs
   |
   └── views
       |
       └──home
       |    |
       |    └── actions
       |    |
       |    └── components
       |    |
       |    └── stores
       |    |
       |    └── constants
       |    |
       |    └── route.js
       |
       └── shared
           |
           └── actions
           |
           └── components
           |
           └── stores
           |
           └── constants

About

A Boilerplate for React and Reflux using ES6 (where possible) (Enzyme Tests)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published