Isomorphic starterkit with server-side React rendering using npm, piping, webpack, webpack-dev-server, koa, babel, react, react-router, react-hot-loader, react-transmit, react-inline-css
- Fully automated toolchain with npm run scripts
- React 0.14 + React Router 1.0 on the client and server
- Babel 6 automatically compiles ES2015 + ES7 draft
- Auto-restarting web server with Koa and Piping
- Webpack for watching and production builds
- React Hot Loader for instant client updates
- React Transmit to preload on server and hydrate client
- InlineCss-component for styling components
It just works out-of-the-box.
Development
git clone https://github.com/RickWong/react-isomorphic-starterkit.git
cd react-isomorphic-starterkit
npm install
npm run watch # Yes, ONE command for server AND client development!
Production
NODE_ENV=production npm run build
NODE_ENV=production npm run start
Run npm run watch
in your terminal and play with views/Main.js
to get a feel of
the server-side rendering and client-side hot updates.
Let's start one together! After you ★Star this project, follow @Rygu on Twitter.
BSD 3-Clause license. Copyright © 2015, Rick Wong. All rights reserved.