/address-go

an address api based on golang

Primary LanguagePLpgSQLApache License 2.0Apache-2.0

address-go

an address api based on golang

Get Start

if you want to run this project, these software are required

  1. Docker

if you use the Mac or Windows, please install Docker Desktop; if you use the Linux, please download docker-compose separately.

  1. 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

  1. use golang-standards to refactor the project layout [x]

Owner

@大明二代

License

MIT © 大明二代