A Responsive, ReactJS/Flux Starter kit for building apps with Node, NPM, ES6, and webpack. As well as optional support for using Cordova to wrap your app in an executable for Android, iOS, etc.
- React 0.14
- Responsive
- Compilation of ES6 & JSX to ES5
- webpack module loader with react hot loader (as well as html, css & sass loaders)
- Karma, mocha, chai & sinon for testing
- Basic flux architecture with app actions, stores and example web API usage
- View http://imgur.com/S17tOcp for an example
- react-router
- Mock Server
- FlyOutMenu (left or right side)
- Header (sticky on top of page, with left and right buttons and a title)
A detailed getting started guide has been created as a wiki, and can be found here.
http://lmigpiit.github.io/react-starter-kit
(coming soon)
tl;dr
npm start
git clone --depth=1 --branch=master https://github.com/lmigpiit/react-starter-kit.git project_name
rm -rf !$/.gitimport Sass and CSS files from within your JavaScript component files:
// Filename: app.jsx
import 'normalize.css/normalize.css';
import './scss/app.scss';- Sass include paths can be adjusted in the
webpack/loaders.jsfile. - All CSS (compiled or otherwise) is run through Autoprefixer.
- CSS files are combined in the order in which they are imported in JavaScript, thus you should always import your CSS/Sass before importing any other JavaScript files.
- Use an approach like BEM to avoid specificity issues that might exist due to unpredicatable order of CSS rules.
All required .html files are compiled with lodash.template and synced into the ./build directory:
// Filename: app.jsx
import './index.html';- You can adjust the lodash template data in the
webpack/loaders.jsfile.
- Use fat arrows for anonymous functions
- Don't use
var. Useletandconst.
This project was initially forked from React seed - example
Copyright (c) 2015 Liberty Mutual