- Docker
$ cp .env.sample .env
$ cp sqlboiler.toml.sample sqlboiler.toml
$ docker-compose up -d pg
$ scripts/setup-db
$ docker-compose up
$ docker-compose exec hydra \
hydra clients create \
--endpoint http://localhost:4445 \
--id prolab-test-client \
--name テストクライアント \
--secret secret \
--grant-types authorization_code,refresh_token \
--response-types code,id_token \
--scope read_profile,write_profile \
--callbacks http://127.0.0.1:5555/callback
$ docker-compose exec hydra \
hydra token user \
--client-id prolab-test-client \
--client-secret secret \
--endpoint http://localhost:4444/ \
--port 5555 \
--scope read_profile,write_profile
Go to http://127.0.0.1:5555/
$ docker-compose exec accounts ./create-user