an address api based on golang
if you want to run this project, these software are required
if you use the Mac or Windows, please install
Docker Desktop
; if you use the Linux, please download docker-compose separately.
git clone https://github.com/damingerdai/address-go.git
docker volume create --name=address-go
docker network create address-networks
run for mysql
docker compose up mysql
in data
folder, exec these sql files to init data
make run
update repositories
bazel run //:gazelle
bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro=deps.bzl%go_dependencies
build
bazel build //cmd/address:address
i use this data source
bazel run //:gazelle
bazel run //:gazelle -- update-repos -from_file=go.mod
bazel build //cmd/address:address
- use golang-standards to refactor the project layout [x]
MIT © 大明二代