Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.83 KB

README.md

File metadata and controls

37 lines (28 loc) · 1.83 KB

ReactJS, RxJS and ImmutableJS example project

Example project setup with configuration out the box and a working dev api server.

image

  1. Webpack - module loader. Configured using the hjs-webpack helpers/presets.
  2. webpack-dev-server including hot module replacement (supports react and css) - local server to run client application.
  3. React - user interface development library.
  4. RxJS - reactive extensions for JS.
  5. ImmutableJS - immutable collections for JavaScript.
  6. hapi-dummy-api - generate dummy APIs for hapi.js, for building clientside apps before the real API is done.
  7. ES2015 - syntax support.
  8. yeticss - lightweight, modular pattern library written in Stylus (simple style bootstrap so don't have to bother).

Usage

  • Build - npm run build
  • Start local server - npm start
  • Start dummy api - node api/server.js

API

To add further api endpoints simply:

  1. Create a new file in api/plugins/ and follow the logic as seen in api/plugins/people.
  2. Register the plugin in the api/server.js by simply adding to the array of registered plugins e.g.
[{
  register: dummy,
  options: require('./plugins/people')
},{
  register: dummy,
  options: require('./plugins/another')
}]