1.0.0-rc2 • Published 8 years ago

spaz-client v1.0.0-rc2

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

spaz-client

Web App Microframework for building Single-Page Applications.

Architecture

  • Single-Page client leveraging React, Redux, and Middle-router

Installation

Use the spaz-cli tool to generate a full Spaz project:

npm install -g spaz-cli
spaz new <project>

Or install the spaz-client separately through npm:

npm install --save spaz-server

Example

import SpazClient from 'spaz-client'
import root from './middlewares/root' // Middle Router middlewares
import reducers from './reducers'     // Object of redux reducers to be combined

let node = document.getElementById('application') // node to mount React
let spaz = new SpazClient({ reducers, node })

spaz.router.use('/', root)

spaz.start()

API Documentation

Coming ...