Skip to content

Evangelize/api-server

Repository files navigation

screenshot

Hapi Universal Redux

Fork from Rick Wong's React Isomorphic Starterkit, with Redux added to the isomorphic mix.

Isomorphic starterkit with server-side React rendering using npm, piping, webpack, webpack-dev-server, hapi.js, babel.js, react.js, redux, react-router, react-hot-loader, react-transmit, radium

Features

  • Fully automated with npm run scripts
  • Server hot reloads with piping and Hapi.js
  • Webpack for watch + production builds
  • React.js + Router on the client and server
  • React Hot Loader for instant client updates
  • Babel.js automatically compiles ES6 + ES7
  • React Transmit to preload on server to client
  • Radium for styling components
  • Redux for managing app state

It just works out-of-the-box.

Installation

	git clone https://github.com/luandro/hapi-universal-redux.git
	cd hapi-universal-redux
	
	npm install
	npm run dev     # changed from original for ease
	
	# production build and run
	NODE_ENV=production npm run build
	NODE_ENV=production npm run start  

Usage

Run npm run dev in your terminal and play with views/Main.js to get a feel of the server-side rendering and client-side hot updates.

License

BSD 3-Clause license. Copyright © 2015, Rick Wong and Luandro. All rights reserved.