@eddieajau/laf
v1.0.0-21
Published
A Light Application Framework for Node.js and Typescript
Downloads
20
Readme
LAF
A Light Application Framework for Node.js and Typescript.
LAF includes a very light application wrapper and a little sugar around Express to provide a backbone for most RESTful API applications.
Usage
npm install @eddieajau/lafDependency Injection
The Dependency Injection container provides the following bindings:
| Binding | Module | Notes |
| -------------------- | ------------- | ------------------------------------------ |
| ApplicationConfig | 'Application| |
|LOGGER | 'Application | Your logger. |
| | | |
| HttpModuleConfig | 'HttpModule | |
|Router | 'HttpModule | The Express router. |
| TokenService | 'HttpModule | A service that supports working with JWTs. |
|TokenServiceConfig | 'HttpModule | |
Demo
npm run demo