boost-web
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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
app Application info
config Static application configuration
events publish and subscribe to events
http Http based Api calls
i18n Internationalization
logging Data logging
routing Navigation and routing
security Authentication and role-based security
session Storage for user sessions
ui User interfaces

More

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

Readme

Keywords

Package Sidebar

Install

npm i boost-web

Weekly Downloads

3

Version

0.1.0

License

ISC

Unpacked Size

62.4 kB

Total Files

52

Last publish

Collaborators

  • lgirma