accounts

package module
v0.0.0-...-5346f80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2020 License: MIT Imports: 0 Imported by: 0

README

prolab-accounts

Build Status Go Report Card

Requirements

  • Docker

Usage

Configuration
$ cp .env.sample .env
$ cp sqlboiler.toml.sample sqlboiler.toml
Schema migration for database
$ docker-compose up -d pg
$ scripts/setup-db
Run the backend server
$ docker-compose up
OAuth 2.0 Authorization Code Flow
$ 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/

Create user
$ docker-compose exec accounts ./create-user

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
Package api_pb is a reverse proxy.
Package api_pb is a reverse proxy.
app
di
job
cmd
infra
You can use the "packr2 clean" command to clean up this, and any other packr generated files.
You can use the "packr2 clean" command to clean up this, and any other packr generated files.
You can use the "packr clean" command to clean up this, and any other packr generated files.
You can use the "packr clean" command to clean up this, and any other packr generated files.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL