2.0.19 • Published 9 years ago
expi v2.0.19

expi
Modular, Minimalistic API Framework built with express.
Installation
Install expi using
$ npm install --save expiExample
A working example can be found in the modules root folder.
$ node node_modules/expi/example/app.jsor
$ cd node_modules/expi && npm run exampleTODO
- Documentation for:
- Module
- Method
- Route
- Expi
- Linting
- Testing
- Add new features
- Dedicated session/authentication hook
- Custom response schema
- Extended response functionality
- Clusterization
- Extended versioning (Provide versioned modules under special routes for backward compatablility)
- New layer ontop of route parameters
- Expose all express functions without interfering with expi functionality
- Proper releases
- Build tasks
- Handling preRoutes middleware while still returning 404 on module path without a route specified
- Handle default errors, http codes, bad requests etc.
Documentation
A small overview over the functionality expi provides
Expi.Module(options)
Usage:
let Module = require('expi').Module
let module = new Module(options)Configuration:
optionsname: The name of the Module, this gets displayed asresponse.meta.nameversion: The version of the Module, this gets displayed asresponse.meta.versionpath: The base path of the module. This path is relative to the root path of the server.?middlewarepreRoutes: Array of functions, these functions are plugged in as middleware before any routes and even before the internal expi-middlewarepostRoutes: Array of functions, these functions are pluggin in as middleware after all routes and even after the internal expi-middleware (Caution: if expi-middleware is active, a response might be sent already!)
routes: Array of expi.Route instances?methods: Array of expi.Method instances
More documentation coming soon, for details take a look at the example in expi_root/example
(This module is in an early state, use with caution)
2.0.19
9 years ago
2.0.18
9 years ago
2.0.17
9 years ago
2.0.16
9 years ago
2.0.15
9 years ago
2.0.14
9 years ago
2.0.13
9 years ago
2.0.12
9 years ago
2.0.11
9 years ago
2.0.10
9 years ago
2.0.9
9 years ago
2.0.8
9 years ago
2.0.7
9 years ago
2.0.6
9 years ago
2.0.5
9 years ago
2.0.4
9 years ago
2.0.3
9 years ago
2.0.2
9 years ago
2.0.1
9 years ago
2.0.0
9 years ago
1.0.3
9 years ago
1.0.2
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago