1.3.3 • Published 1 year ago

cloudify-ui-common-backend v1.3.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

Cloudify UI Common Backend

npm

This package contains common TypeScript code for Cloudify UI backend applications.

The following features are provided by the package: 1. Database connection and access handling - see getDbModule function 2. Logging framework initialization - see initLogging function 3. Database migration capabilities - see runMigration function

Installation

npm install cloudify-ui-common-backend

Usage

Example of how to create logger and send a log:

import { initLogging } from 'cloudify-ui-common-backend';

const loggerFactory = initLogging({ logLevel: "debug" });
const logger = loggerFactory.getLogger('MyCatagory');

logger.log('Something happened!')

Development

  • add new code to src folder
  • remember to export new files in src/index.ts (otherwise the new code will not be available in the distribution package)
  • build: npm run build (TypeScript compilation)
  • test: npm run test (unit testing with Jest testing framework), npm run lint (static analysis, code style check) and npm run check-types (TypeScript types check)
  • document your code (we are using JSdoc block tags)
1.3.3

1 year ago

1.2.0

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

2 years ago

1.0.0-pre.0

2 years ago