Utilisation d'un serveur Go custom pour le backend au lieu de

super-graph

Malheureusement, super-graph n'a pas tenu les promesses qu'il semblait
annoncer.

Je propose donc de basculer sur un serveur Go classique (via goweb).
L'authentification OpenID Connect étant gérée côté backend et non plus
côté frontend.
This commit is contained in:
2020-07-10 18:07:41 +02:00
parent ff70a6d570
commit 1120474ad9
65 changed files with 880 additions and 848 deletions

View File

@ -1,17 +1,20 @@
build:
build: build-docker build-server
build-docker:
docker-compose build
build-server:
CGO_ENABLED=0 go build -mod=vendor -v -o ./bin/server ./cmd/server
deps:
cd frontend && npm install
cd client && npm install
env GO111MODULE=off go get github.com/cortesi/modd/cmd/modd
up: build
( cd frontend && NODE_ENV=development npm run server ) & USER_ID=$(shell id -u) docker-compose up && wait
up: build-docker
docker-compose up
sg:
docker-compose exec -u $(shell id -u) super-graph sh
sgr:
docker-compose run -u $(shell id -u) super-graph sh
watch:
$(GOPATH)/bin/modd
down:
docker-compose down -v --remove-orphans
@ -19,5 +22,8 @@ down:
db-shell:
docker-compose exec postgres psql -Udaddy
test:
go test -v ./...
hydra-shell:
docker-compose exec hydra /bin/sh