Skip to content

bestchains/bc-saas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8222377 · Jul 6, 2023

History

51 Commits
Apr 28, 2023
Jul 3, 2023
Jun 29, 2023
Jul 3, 2023
Jun 25, 2023
Jun 15, 2023
Jun 29, 2023
Jun 29, 2023
Apr 19, 2023
Apr 19, 2023
Apr 19, 2023
Apr 19, 2023
Apr 19, 2023
Apr 19, 2023
Jun 15, 2023
Apr 28, 2023
Apr 28, 2023
Jun 20, 2023
Jun 20, 2023

Repository files navigation

Bestchains SaaS

codecov

bc-saas represents software-as-a-service provided in bestchains

Now we have:

  • digital depository which provide basic capability to manage depositories

Service irrelevant architecture:

saas_arch

Usage

Prerequsities

Build image

# output: hyperledgerk8s/bc-saas:v0.1.0
WHAT=bc-saas GOOS=linux GOARCH=amd64 make image

Quick start

start a depository service

  1. build depository server
WHAT=depository make binary
  1. verify depository
❯ ./_output/bin/linux/amd64/depository -h
Usage of ./bin/depository:
  -auth string
        user authentication method, none, oidc or kubernetes (default "none")
  -addr string
     used to listen and serve http requests (default ":9999")
  -profile string
     profile to connect with blockchain network (default "./network.json")
  -contract string
     contract name (default "depository")
  -db string
        which database to use, default is pg(postgresql) (default "pg")
  -dsn string
        database connection string (default "postgres://bestchains:Passw0rd!@127.0.0.1:5432/bc-saas?sslmode=disable")
  -v value
     number for the log level verbosity
  1. start depository server
./bin/depository -auth none -addr localhost:9999 -profile test/profile.json -contract depository -db pg -dsn 'postgres://bestchains:Passw0rd!@172.22.96.209:5432/bc-saas?sslmode=disable'

arguments:

  • -auth: authentication method(default "none")
  • -addr: used to listen and serve http requests (default ":9999")
  • -profile: retrieved from bestchains-platform
  • -contract: depository contract's name deployed on the blockchain network
  • -db: database type,only pg allowed for now
  • -dsn: database connection string,only postgresql supported for now

Only when db is pg,we will listen on contract events and store depository details into database

Development

APIs

Contribute to bc-saas

If you want to contribute to bc-saas,refer to contribute guide

Support

If you need support, start with the troubleshooting guide, or create github issues