zitadel/docs/local.md
Fabi 5c4fef296f
fix: app by id, views with computed objects (#583)
* feat: read app by id if my events

* fix: handlers if no sublist

* fix: removed app

* fix: removed project

* fix: removed app

* fix: removed app

* fix: app by id with projectid
2020-08-13 08:28:18 +02:00

805 B

local development

start cockroach in docker

docker rm -f zitadel-db &&
rm -rf ${GOPATH}/src/github.com/caos/zitadel/cockroach-data &&
docker run -d \
--name=zitadel-db \
--hostname=zitadel-db \
-p 26257:26257 -p 8080:8080  \
-v "${GOPATH}/src/github.com/caos/zitadel/cockroach-data/zitadel1:/cockroach/cockroach-data"  \
cockroachdb/cockroach:latest start --insecure

local database migrations

local migrate

go generate $GOPATH/src/github.com/caos/zitadel/migrations/cockroach/migrate_local.go

local cleanup

go generate $GOPATH/src/github.com/caos/zitadel/migrations/cockroach/clean_local.go

Connect to Cockroach

docker exec -it "zitadel-db" /cockroach/cockroach sql --insecure

Should show eventstore, management, admin, auth

show databases;