bc-saas represents software-as-a-service provided in bestchains
Now we have:
digital depositorywhich provide basic capability to manage depositories
Service irrelevant architecture:
- Golang
- A blockchain network from bestchains platform
- Deployed depository contract on that network
# output: hyperledgerk8s/bc-saas:v0.1.0
WHAT=bc-saas GOOS=linux GOARCH=amd64 make image- build
depositoryserver
WHAT=depository make binary- 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:[email protected]:5432/bc-saas?sslmode=disable")
-v value
number for the log level verbosity- start
depositoryserver
./bin/depository -auth none -addr localhost:9999 -profile test/profile.json -contract depository -db pg -dsn 'postgres://bestchains:[email protected]: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,onlypgallowed for now-dsn: database connection string,onlypostgresqlsupported for now
Only when
dbispg,we will listen on contract events and store depository details into database
depositoryAPIS: See the documentation
If you want to contribute to bc-saas,refer to contribute guide
If you need support, start with the troubleshooting guide, or create github issues
