Skip to content

yetone/react-kickstart

 
 

Repository files navigation

react-kickstart

just another react + webpack boilerplate

Build Status Test Coverage Dependency status Dev dependency status

Minimal

It contains just the necessary to get started with React, I decided to not include flux libraries or other complicated stuff like server-rendering in here.

This projects aims to be a starting point for your React projects, and a way to learn it for newcomers.

See a working demo

Features

  • webpack and webpack-dev-server setup for development (with hot-module-replacement), and for production (with sourcemaps generation for both css and js bundles)
  • clear separation between smart and dumb components
  • styles for dumb components directly loaded from inside the component file
  • basic routing setup with react-router (you most likely need routing in your app)
  • code written is ES6 syntax and transpiled with babeljs
  • unit tests (mocha + chai) examples with both shallow-rendering and jsdom
  • code coverage generation using istanbul
  • eslint and jscs configuration

Usage

Clone this repository

git clone https://github.com/vesparny/react-kickstart.git

Start the application in dev mode with hot-module-replacement

npm start

Run tests

npm test

Build for production (/dist/ folder)

npm run build

Run jscs and eslint

npm run jscs
npm run eslint

Generate code coverage report (/coverage/ folder)

npm run test:cov

Contributing

PR and issues reporting are always welcome :)

License

See LICENSE file

Changelog

See CHANGELOG.md file

Inspiration

About

just another react + webpack boilerplate

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 90.2%
  • HTML 5.3%
  • Shell 4.1%
  • CSS 0.4%