Welcome, friend, to my two-day hardcore React Workshop. You'll grow some real bones instead of the Backbone.js (pun intended) your rib cage is attached now.
This repo also acts as a broilerplate to kickstart a React project with sane defaults, necessary tooling and some reusable, copy-paste-preventing boilerplate stuff. It's exactly the same stuff I build my stuff on.
The master
branch contains the full broilerplated example application. training
is empty.
Use as you wish, but still read the license from LICENSE.
- MacOS or Linux. Might work in Windows too, but I don't know. Please report if it doesn't
- For training, you can always download and use the ready-to-use the prebuilt virtual machine. It's ready for action.
- A new Node.js. 6.x nowadays.
- The Yarn package manager (or NPM version 3.x)
- A good editor / IDE that supports Flow real-time. I use Nuclide myself because I think it's great!
- If you want to run production mode, an example configuration file for Nginx is included.
- React
- React Router
- Application state management
- Redux
- Immutable data
- Immutable.js, Ramda, Lodash
- Component based styling
- PostCSS and CSS modules vs pure JavaScript styling
- Component development with designer-friendly methods
- React Storybook
- Babel
- Preset to React apps
- Webpack
- To hot reload or not?
- Flow -What about TypeScript
- Linting
- Testing
- Mocha, Chai and Enzyme
- install yarn
yarn
cp config.client.example.js config.client.js
cp config.server.example.js config.server.js
Until yarn run works correctly, we default to npm.
yarn run start
- open browser and go to http://localhost:8888
yarn run storybook
yarn run test
yarn run flow
yarn run lint
Builds to dist/
folder.
yarn run build