Silvan 264dc2eca4
fix: Example client (#1492)
* start

* fix path

* all protos

* cleanup

* fix

* slash

* change grpc out

* message

* running example

* add befehl

* ignore generate client code

* fix readme

* management

* push

* hobla

* add i

* change i

* cleanup

* comments

* add tag name

* mod tidy
2021-03-30 10:58:31 +02:00
..
2020-07-08 13:56:37 +02:00
2021-03-30 10:58:31 +02:00
2021-03-24 08:04:37 +01:00

Development

Prerequisite

  • Buildkit compatible docker installation

Generate Proto Clients

Angular

This command generates the grpc stub for angular into the folder console/src/app/proto/generated for local development

DOCKER_BUILDKIT=1 docker build -f build/dockerfile . -t zitadel:local --target npm-copy -o console/src/app/proto/generated

Go

With this command you can generate the stub for golang into the correct dir pkg/

DOCKER_BUILDKIT=1 docker build -f build/dockerfile . -t zitadel:local --target go-copy -o pkg

Run

Run Angular

COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f build/docker-compose-dev.yml up --build angular

Run Go

COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f build/docker-compose-dev.yml up --build  go

Fullstack including database

COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f build/docker-compose-dev.yml up --build

Debug

Debug Go

COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f build/docker-compose-debug.yml up --build  go

Production Build

This can also be run locally!

DOCKER_BUILDKIT=1 docker build -f build/dockerfile . -t zitadel:local --build-arg ENV=prod