coryhouse /react-slingshot

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

★ 9,621⑂ 2,851👁 222⑃ 355● 412▤ 13
JavaScriptMITCreated 2015-12-31
下载:7.07.0 ↓7.02017-09-03
+0
日增长
9,621
stars
2,851
forks
222
watchers
355
prs
412
issues
13
releases

README

---






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:



 Get Started

1. Initial Machine Setup

    First time running the starter kit? Then complete the Initial Machine Setup.

2. Click "Use this template"

    Click the green "Use this template" button at the top of this page and enter a name and description for your repo.

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?.

 Initial Machine Setup

1. Install Node 8.0.0 or greater

    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. Complete the steps below for your operating system:

     macOS

     Install watchman via brew install watchman or fswatch via brew install fswatch to avoid this issue which occurs if your macOS has no appropriate file watching service installed.

     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.

     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.
      
      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.
    

Top issues

Latest release

7.0 7.0 2017-09-03
Breaking Changes
- Upgraded to React Router 4 393 
- Upgraded to Webpack 3 444
- Upgraded to React Hot Loader 3 392 
- Upgraded all other dependencies to latest 444 390 401
- Switched to babel-preset-env 411 

 Bug fixes
- Update Jest config to properly handle static assets 457 
- Enhance babel env config to transpile for IE9+ 452 
- Remove escape chars in setupPrompts.js causing linting to fail 449 
- Add jest-cli as an explicit dependency a5cf0e0
- Copy favicon to /dist 424 
- Switch from open to opn to resolve issue on Windows 421 
- Resolve setup script issues 416

 Enhance

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON