address-go
an address api based on golang
Get Start
if you want to run this project, these software are required
- Docker
if you use the Mac or Windows, please install Docker Desktop
;
if you use the Linux, please download docker-compose separately.
2. Golang
Install
git clone https://github.com/damingerdai/address-go.git
Init
Create Volume
docker volume create --name=address-go
Create Network
docker network create address-networks
Docker Compose
run for mysql
docker compose up mysql
Init data
in data
folder, exec these sql files to init data
Run
make run
Bazel
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
Data
i use this data source
bazel
bazel run //:gazelle
bazel run //:gazelle -- update-repos -from_file=go.mod
bazel build //cmd/address:address
Roadmap
2019.12.30
- use golang-standards to refactor the project layout [x]
Owner
@大明二代
License
MIT © 大明二代