Skip to content

jjm340/react-boilerplate

 
 

Repository files navigation

react-boilerplate - Boilerplate for "SurviveJS - React"

This is a forked version by Jeremy Miller that adds LESS precompilation and removes various other things I do not

want to use

See SurviveJS - React for the book.

Getting Started

  1. npm i - Install dependencies. This might take a while.
  2. 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 try PORT=3000 npm start. It will pick up the port from the environment if it's set.
  3. Surf to the port shown at terminal.
  4. 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 below build/. See the Building with Webpack part for more.
  • npm run test - Runs __tests__/ through Jest once.
  • npm run test:tdd - Runs tests/ 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.

About

Boilerplate for the "SurviveJS - React" book

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.0%
  • CSS 2.0%