react-slingshot 0,8,11,0,15,10,13,0 editorconfig eslint travis-ci npm

React + Redux starter kit / boilerplate with Babel, hot reloading, testing, linting and a working example app, all built in

Build status: Linux Build status: Windows Dependency Status Coverage Status

React Slingshot is a comprehensive starter kit for rapid application development using React.

Why Slingshot?

  1. One command to get started - Type npm start to start development in your default browser.
  2. Rapid feedback - Each time you hit save, changes hot reload and linting and automated tests run.
  3. One command line to check - All feedback is displayed on a single command line.
  4. No more JavaScript fatigue - Slingshot uses the most popular and powerful libraries for working with React.
  5. Working example app - The included example app shows how this all works together.
  6. Automated production build - Type npm run build to do all this:

React Slingshot Production Build

Get Started

  1. Initial Machine Setup. First time running the starter kit? Then complete the Initial Machine Setup.
  2. Clone the project. git clone
  3. Run the setup script. npm run setup
  4. Run the example app. npm start -s This will run the automated build process, start up a webserver, and open the application in your default browser. When doing development with this kit, this command will continue watching all your files. Every time you hit save the code is rebuilt, linting runs, and tests run automatically. Note: The -s flag is optional. It enables silent mode which suppresses unnecessary messages during the build.
  5. Review the example app. This starter kit includes a working example app that calculates fuel savings. Note how all source code is placed under /src. Tests are placed alongside the file under test. The final built app is placed under /dist. These are the files you run in production.
  6. Delete the example app files. Once you’re comfortable with how the example app works, you can delete those files and begin creating your own app.
  7. Having issues? See “Having Issues?” below.

Initial Machine Setup

  1. Install Node 4.0.0 or greater - (5.0 or greater is recommended for optimal build performance). Need to run multiple versions of Node? Use nvm.
  2. Install Git.
  3. Disable safe write in your editor to assure hot reloading works properly.
  4. On a Mac? You’re all set. If you’re on Linux or Windows, complete the steps for your OS below.

On Linux:

  • Run this to increase the limit on the number of files Linux will watch. Here’s why.
    echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

On Windows:

  • Install Python 2.7. Some node modules may rely on node-gyp, which requires Python on Windows.
  • Install C++ Compiler. Browser-sync requires a C++ compiler on Windows. Visual Studio Express comes bundled with a free C++ compiler. Or, if you already have Visual Studio installed: Open Visual Studio and go to File -> New -> Project -> Visual C++ -> Install Visual C++ Tools for Windows Desktop. The C++ compiler is used to compile browser-sync (and perhaps other Node modules).

Having Issues? Try these things first.

  1. Make sure you ran all steps in Get started including the initial machine setup.
  2. Run npm install - If you forget to do this, you’ll see this: babel-node: command not found.
  3. Install the latest version of Node. Or install Node 5.12.0 if you’re having issues on Windows. Node 6 has issues on some Windows machines.
  4. Make sure files with names that begin with a dot (.babelrc, .editorconfig, .eslintrc) are copied to the project directory root. This is easy to overlook if you copy this repository manually.
  5. Don’t run the project from a symbolic link. It may cause issues with file watches.
  6. Delete any .eslintrc that you’re storing in your user directory. Also, disable any ESLint plugin / custom rules that you’ve enabled within your editor. These will conflict with the ESLint rules defined in this project.
  7. Make sure you don’t have NODE_ENV set to production on your machine. If you do then the development dependencies won’t be installed. Here’s how to check.


Slingshot offers a rich development experience using the following technologies:

Tech Description Learn More
React Fast, composable client-side components. Pluralsight Course
Redux Enforces unidirectional data flows and immutable, hot reloadable store. Supports time-travel debugging. Lean alternative to Facebook’s Flux. Getting Started with Redux, Building React Applications with Idiomatic Redux, Pluralsight Course
React Router A complete routing library for React Pluralsight Course
Babel Compiles ES6 to ES5. Enjoy the new version of JavaScript today. ES6 REPL, ES6 vs ES5, ES6 Katas, Pluralsight course
Webpack Bundles npm packages and our JS into a single file. Includes hot reloading via react-transform-hmr. Quick Webpack How-to Pluralsight Course
Browsersync Lightweight development HTTP server that supports synchronized testing and debugging on multiple devices. Intro vid
Jest Automated tests with built-in expect assertions and Enzyme for DOM testing without a browser using Node. Pluralsight Course
TrackJS JavaScript error tracking. Free trial
ESLint Lint JS. Reports syntax and style issues. Using eslint-plugin-react for additional React specific linting rules.
SASS Compiled CSS styles with variables, functions, and more. Pluralsight Course
PostCSS Transform styles with JS plugins. Used to autoprefix CSS
Editor Config Enforce consistent editor settings (spaces vs tabs, etc). IDE Plugins
npm Scripts Glues all this together in a handy automated build. Pluralsight course, Why not Gulp?

The starter kit includes a working example app that puts all of the above to use.


Check out the FAQ

Related Repositories



React + Redux starter kit / boilerplate with Babel, hot reloading, testing, linting and a working example app, all built in ...



React + Redux starter kit / boilerplate with Babel, hot reloading, testing, linting and a working example app, all built in ...



React + Redux starter kit with Babel, hot reloading, testing, linting and a working example app, all built in ...



a react example created using react-slingshot starter kit acessing the imdb open api. ...



Another React-Redux starter kit heavily inspired by Cory House's react-slingshot ...

Top Contributors

coryhouse iLeonelPerea dwmkerr nickytonline gargrave rndstr vdclouis Oliboy50 SheldonJones greenkeeperio-bot w3cj atfzl bf4 radarhere alucic ArcanisCz adam-beck barrystaes Simek Boychenko hackerrdave firstdoit HoraceShmorace jboxman Zone-Ghost kohei-takata kwelch bettiolo piotrkaczmarek ReadmeCritic


package version
object-assign 4.1.0
react 15.5.4
react-dom 15.5.4
react-redux 5.0.5
react-router 3.0.5
react-router-redux 4.0.8
redux 3.6.0
redux-thunk 2.1.0
dev autoprefixer 7.1.2
babel-cli 6.24.1
babel-core 6.25.0
babel-eslint 7.2.3
babel-jest 20.0.3
babel-loader 7.1.1
babel-plugin-transform-react-constant-elements 6.23.0
babel-plugin-transform-react-remove-prop-types 0.4.6
babel-polyfill 6.23.0
babel-preset-env 1.6.0
babel-preset-react 6.24.1
babel-preset-react-hmre 1.1.1
babel-preset-stage-1 6.24.1
browser-sync 2.18.12
chalk 2.0.1
connect-history-api-fallback 1.3.0
coveralls 2.13.1
css-loader 0.28.4
enzyme 2.9.1
eslint 4.2.0
eslint-plugin-import 2.7.0
eslint-plugin-react 7.1.0
eslint-watch 3.1.2
extract-text-webpack-plugin 3.0.0-rc.2
file-loader 0.11.2
html-webpack-plugin 2.29.0
identity-obj-proxy 3.0.0
jest 20.0.4
jest-cli 20.0.4
json-loader 0.5.4
mockdate 2.0.1
node-sass 4.5.3
npm-run-all 4.0.2
opn-cli 3.1.0
postcss-loader 1.2.1
prompt 1.0.0
prop-types 15.5.10
react-hot-loader 3.0.0-beta.6
react-test-renderer 15.5.4
redux-immutable-state-invariant 2.0.0
replace 0.3.0
rimraf 2.6.1
sass-loader 6.0.6
style-loader 0.18.2
url-loader 0.5.9
webpack 3.1.0
webpack-bundle-analyzer 2.8.2
webpack-dev-middleware 1.11.0
webpack-hot-middleware 2.18.2
webpack-md5-hash 0.0.5


-   v5.0 zip tar
-   v4.0 zip tar
-   v3.0.1 zip tar
-   v3.0.0 zip tar
-   v2.0.0 zip tar
-   v1.2.0 zip tar
-   v1.1.1 zip tar
-   v1.1.0 zip tar
-   v1.0.4 zip tar
-   v1.0.3 zip tar
-   v1.0.2 zip tar
-   v1.0.1 zip tar
-   5.0 zip tar