1.7.0 • Published 2 years ago

ketrics-client v1.7.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Deploy and Execute Ketrics APPs APIs

### Local testing

tsc && node dist/index.js deploy -c .env.local -f sample/app-test.zip

tsc && node dist/index.js deploy -f sample/app-test.zip

tsc && node dist/index.js test -f sample/app-test.zip

tsc && node dist/index.js token

Install Locally

tsc && npm install -g .

tsc && npm pack && sudo npm i -g ketrics-cli-1.5.1.tgz

Example Execution

  • -c is optional
kcli deploy sample/app-test.zip -c .env.local

kcli deploy sample/app-test.zip


kcli init app-test

tsc && node dist/index.js execute "API.fetchApplicationParameters"

tsc && node dist/index.js execute "API.fetchApplicationParameters" -p '{"database": "COMSMARTFOODS20"}'

Ketrics Client Docker Image

### BUILD IMAGE

export DOCKER_DEFAULT_PLATFORM=linux/amd64

docker build -t ketrics/ketrics-client .

docker image push ketrics/ketrics-client

### TEST IMAGE

docker run -it --rm -v $(PWD)/.env.local:/app/.env.local -e API_HANDLER="API.procesarClientes" -e API_PAYLOAD='{"database": "COMSMARTFOODS20"}'  ketrics/ketrics-client