Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/survivejs/react-boilerplate
Boilerplate for the "SurviveJS - React" book
https://github.com/survivejs/react-boilerplate
Last synced: 9 days ago
JSON representation
Boilerplate for the "SurviveJS - React" book
- Host: GitHub
- URL: https://github.com/survivejs/react-boilerplate
- Owner: survivejs
- Created: 2016-04-27T08:11:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-11T11:34:10.000Z (over 7 years ago)
- Last Synced: 2024-04-14T14:12:32.256Z (7 months ago)
- Language: JavaScript
- Size: 32.2 KB
- Stars: 74
- Watchers: 7
- Forks: 46
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-boilerplate - Boilerplate for "SurviveJS - React"
See [SurviveJS - React](http://survivejs.com/react/introduction/) 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
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](http://survivejs.com/webpack/building-with-webpack/) part for more.
* `npm run deploy` - Deploys the contents of the `build/` directory below the **gh-pages** branch.
* `npm run test` - Runs `tests/` through Karma/Phantom/Mocha 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](http://survivejs.com/webpack/building-with-webpack/analyzing-build-statistics/) chapter.