Couchbase common component
npm install @samet-it/be-couchbase-commonts component backend
__ __
_________ __ _______/ /_ / /_ ____ _________ _________ ____ ___ ____ ___ ____ ____
/ ___/ __ \/ / / / ___/ __ \/ __ \/ __ / ___/ _ \ / ___/ __ \/ __ __ \/ __ __ \/ __ \/ __ \
- EN: Use it for couchbase connections
- TR: Couchbase bağlantıları için bu bileşeni kullanınızPrerequisite
- Help
- 1 - Install Git
- 2 - Build Up a Git Connection
- 3 - Install Node/NPM
- 4 - Create Project Folder
- 5 - Bind Projects Folder to GitUsage
- EN: How to add into your project?
- TR: Projene nasıl eklersin?`shell
npm i @samet-it/be-couchbase-common
`Environments
- CouchbaseCommonConf| Name | Type | Default | Required | Secret | Description |
|---------------------|---------|---------|----------|--------|---------------------------------------------|
|
CB_HOST | string | | ✅ | ⭕ | DB Host or IP Address |
| CB_USER | string | | ✅ | ⭕ | DB User |
| CB_PASS | string | | ✅ | ⭕ | DB Password |
| CB_BUCKET | string | | ✅ | | Bucket/DB Name |
| CB_SCOPE | string | | ✅ | | Scope/Schema Name |
| CB_CREATE_INDICES | boolean | _false_ | | | Does it create the indices when it deploys? |Contents
- abstract CbConnection - abstract connection class
- class CbDirectConnection - Direct connection
- function cbConnection() - Connection function
- abstract CbRepo - abstract repository
- class CbDirectRepo - direct repository
- instance cbFilterUtil - query filter utility
Development
> You can start to develop on it
>
$3
- Go to project folder$3
- EN: Clone the project
- TR: Projeyi bilgisiyarına çek
`shell
git clone https://github.com/samet-digital/be-couchbase-common.git -b development
`Dependencies
- @samet-it/be-base-common: samet base common
- @samet-it/be-db-common: samet db common
- @samet-it/be-cache-common: samet cache common
- @leyyo/*: leyyo utilities
- couchbase: couchbase clientCommands
- Component CommandsStandards
`diff
+ language: TS
+ lint: eslint
+ inspections: intelli-j code inspections
+ ddd: domain driven development
+ edd: exception driven development
! tdd: test driven development
+ ldd: log driven development
+ ddd: document driven development
``