survivejs / React Boilerplate
Boilerplate for the "SurviveJS - React" book
Stars: ✭ 72
Programming Languages
javascript
184084 projects - #8 most used programming language
react-boilerplate - Boilerplate for "SurviveJS - React"
See SurviveJS - React for the book.
If you use Vagrant or Cloud9, you'll need to tweak the development server port as instructed in webpack.parts.js.
Getting Started
-
npm i
- Install dependencies. This might take a while. -
npm start
- Run development build. If it doesn't start, make sure you aren't running anything else in the same port. In case you are on a Unix platform, you can tryPORT=3000 npm start
. It will pick up the port from the environment if it's set. - Surf to the port shown at terminal.
- Start modifying the code. The browser should pick up the changes.
Advanced Commands
Beyond development, the boilerplate supports other tasks listed below:
-
npm run build
- Generates a production build belowbuild/
. See the Building with Webpack part for more. -
npm run deploy
- Deploys the contents of thebuild/
directory below the gh-pages branch. -
npm run test
- Runstests/
through Karma/Phantom/Mocha once. -
npm run test:tdd
- Runstests/
in a TDD mode (watches for changes and rebuilds). -
npm run test:lint
- Runs code through ESLint to spot code quality issues. -
npm run stats
- Generates Webpack build statistics. See the Analyzing Build Statistics chapter.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].