spaz
Spaz Microframework server component for Express API backend.
Architecture
- Express Web Framework
- Curated Express Middlewares
- Body Parser
- Connect Request Id
- Bunyan logger with auto-attached middleware
- Auto-attached error handler middleware
Installation
Requires Node.js v6 or later
Use the spaz-cli
tool to generate a full Spaz project:
npm install -g spaz-clispaz new <project>
Or install the spaz-server
separately through npm
:
npm install --save spaz-server
Example
let spaz = name: 'Spaz Test' port: processenvPORT staticDir: processenvNODE_ENV !== 'production' ? 'assets' : null /* * Add routes to the SPAZ Router */// let routes = spaz.newRouter()// spaz.router.use(routes) spaz start
API Documentation
Coming ...