3.1.17 • Published 21 days ago

ckn.stream v3.1.17

Weekly downloads
-
License
ISC
Repository
-
Last release
21 days ago

CKN Stream

CKN Framework is framework for Javascript to support both of backend and frontend. It helps us to develop microservice model easier. And it helps to manage 3rd parties library. CKN Stream is library to manage data including database management, files management.

Installation

CKN Stream is public npm package on NPM registry. Before install package, need to install Node.js version 18.0 or higher.

npm install ckn.stream

Database Management

It is a tool that helps manage data in the database. CKN.Stream can support various databases such as PostgreSQL, SQL Server, or MySQL, and more.

Database Management - PostgreSQL

Begin with, it need to inherit class from Postgresql class like below example.

import { Postgresql } from "ckn.stream";

export class TestDatabase extends Postgresql {
    constructor() {
        super();
        this.host = '<Database Server Address>';
        this.user = '<Database User Name>' ;
        this.password = '<Database Password>' ;
        this.database = '<Database Name>';
        this.schema = '<Database Schema>'; // Such as 'public'
    }
}

You can bind configuration to Environment Variable as below example.

import { Postgresql } from "ckn.stream";

export class TestDatabase extends Postgresql {
    constructor() {
        super();
        this.host = process.env.DB_HOST ;
        this.user = process.env.DB_USER ;
        this.password = process.env.DB_PASSWORD ;
        this.database = process.env.DB_DATABASE;
        this.schema = process.env.DB_SCHEMA;
    }
}

License

MIT

3.1.17

21 days ago

3.1.16

21 days ago

3.1.15

24 days ago

3.1.14

2 months ago

3.1.13

2 months ago

3.1.12

2 months ago

3.1.11

5 months ago

3.1.10

5 months ago

3.1.9

5 months ago

3.1.8

5 months ago

3.1.3

9 months ago

3.1.2

9 months ago

3.1.1

9 months ago

3.1.0

9 months ago

3.1.7

5 months ago

3.1.6

6 months ago

3.0.7

10 months ago

3.1.5

7 months ago

3.1.4

8 months ago

3.0.6

11 months ago

3.0.4

11 months ago

3.0.3

11 months ago

3.0.5

11 months ago

3.0.2

12 months ago

3.0.1

12 months ago

3.0.0

12 months ago