spaz-client

Spaz Microframework client component for React SPA

Usage no npm install needed!

<script type="module">
  import spazClient from 'https://cdn.skypack.dev/spaz-client';
</script>

README

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 ...