0.1.0 • Published 3 years ago

boost-web v0.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Boost Web

Web functionality abstractions.

boost-web is a js/ts library of abstract interfaces and classes for common web functionality.

Installation

npm i boost-web

Usage

Implement any interface using your favorite dependency injection.

For example, manually setting up modules config, app and http:

Container.ts:

import appConfig from './appConfig.dev.json'

const _config: ConfigService = new SimpleConfigService(appConfig)
const _app: AppService = new SimpleAppService(_config)
const _http: HttpService = new FetchHttpService(_config)

Then using the http service:

import {_http} from '/Container'

let apiInfo = await _http.get<ApiInfo>('api/info')

Provided Modules

Module
appApplication info
configStatic application configuration
eventspublish and subscribe to events
httpHttp based Api calls
i18nInternationalization
loggingData logging
routingNavigation and routing
securityAuthentication and role-based security
sessionStorage for user sessions
uiUser interfaces

More

To install more plugins, check out boost-web-universe package.