Run all local development dependencies
npx nx up local-dev-env local-dev-env
or
npm run docker:up:local-dev-env
Run all platform services
npx nx docker:detached admin-api && npx nx docker:detached entity-api && npx nx docker:detached token-api && npx nx docker:detached mailing-api
or
npm run docker:up:platform
Run only entity api service
npx nx docker entity-api
Run only token api service
npx nx docker token-api
Run only admin api service
npx nx docker admin-api
Run only mailing api service
npx nx docker mailing-api
Run all asset services without frontend
npx nx docker:detached kyc-api && npx nx docker:detached metadata-api && npx nx docker:detached smart-contract-api && npx nx docker:detached workflow-api && npx nx docker:detached assets-api
or
npm run docker:up:assets
Run all asset services with frontend
npx nx docker:detached assets-front && npx nx docker:detached cofidocs-api && npx nx docker:detached external-identity-api && npx nx docker:detached external-storage-api && npx nx docker:detached i18n-api && npx nx docker:detached kyc-api && npx nx docker:detached metadata-api && npx nx docker:detached smart-contract-api && npx nx docker:detached workflow-api && npx nx docker:detached assets-api
Run only external storage api service
npx nx docker external-storage-api
Run only asset frontend
npx nx docker assets-front
Run only kyc api service
npx nx docker kyc-api
Run only workflow api service
npx nx docker workflow-api
Run only external identity api service
npx nx docker external-identity-api
Run only cofidocs api service
npx nx docker cofidocs-api
Run only metadata api service
npx nx docker metadata-api
Run only i18n api service
npx nx docker i18n-api
Run only smart contract api service
npx nx docker smart-contract-api
Run only assets api service
npx nx docker assets-api
Run only digital currency api service
npx nx docker:detached digital-currency-api
or
npm run docker:up:payments
When building a service you can change the dockerfile used. Example if you want to build entity api service using Dockerfile instead of the Dockerfile.dev
DOCKERFILE=Dockerfile npx nx docker entity-api
When you launched one service or a suite of services you may want to stop it. Example if you launched entity api service, you may stop it using this command.
npx nx docker:down entity-api
When you launched multiple services, you may want to stop them alltogether. Example if you launched all the services included in the platform group.
npx nx docker:down admin-api && npx nx docker:down entity-api && npx nx docker:down token-api && npx nx docker:down mailing-api
or
npm run docker:down:platform
You may want to run integrations tests agains a running docker container. Example if you want to run entity api service integration tests against a container named (entity-api_ms_1)
CONTAINER=entity-api_ms_1 PACKAGE=entity-api npm run test:integration:base