Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/libra-china-org/librabock-backend
LibraBlock.io backend in Go
https://github.com/libra-china-org/librabock-backend
Last synced: about 2 months ago
JSON representation
LibraBlock.io backend in Go
- Host: GitHub
- URL: https://github.com/libra-china-org/librabock-backend
- Owner: libra-china-org
- License: mit
- Archived: true
- Created: 2019-06-24T12:21:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-16T07:43:35.000Z (over 5 years ago)
- Last Synced: 2024-08-03T18:14:25.150Z (5 months ago)
- Language: Go
- Homepage: https://librablock.io
- Size: 175 KB
- Stars: 8
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-libra - librablock-backend - Open source backend (Block Explorer)
README
# Go-Libra
## Deploy
### Run API Server
```bash
export GO111MODULE=on
export LIBRA_MYSQL_URL="DATABASE_USERNAME:DATABASE_PASSWORD@(DATABASE_HOST:DATABASE_POSRT)/DATABASE_NAME"
# example "root:test@(127.0.0.1:3306)/libra"
go build main.go
./main
```### Run Block Fetcher
```bash
export GO111MODULE=on
export LIBRA_MYSQL_URL="DATABASE_USERNAME:DATABASE_PASSWORD@(DATABASE_HOST:DATABASE_POSRT)/DATABASE_NAME"
# example "root:test@(127.0.0.1:3306)/libra"# telegram notify setting
export LIBRA_BOT_KEY=""
export LIBRA_BOT_SECRET=""
export LIBRA_BOT_CHAT_ID=""go build block_fetcher.go
./block_fetcher
```