Birdex was server
Ref example.yaml, rename to config.yaml
Ref example.yaml, rename to config.yaml
If you want to use docker network, see this
make docker-build
make docker-image
docker run -d -p 8080:8080 -v "${pwd}/secret:/server/secret" --network backnet was # set your port, image, bind mountRequire go
# build default (linux-amd64)
make build # or make build-linux-amd64
# build linux-arm64
make build-linux-arm64
# build windows-amd64
make build-widnows-amd64
# build windows-arm64
make build-windows-arm64
# build all
make build-all# build default (linux-amd64)
make docker-build # or make docker-build-linux-amd64
# build linux-arm64
make docker-build-linux-arm64
# build windows-amd64
make docker-build-widnows-amd64
# build windows-arm64
make docker-build-windows-arm64
# build all
make docker-build-allWith current ./config.yaml
# build docker default image (linux-amd64)
make docker-image # or make docker-image-linux-amd64
# tag was
#build linux-arm64 docker image
make docker-image-linux-arm64
# tag arm64/wasdocker compose up -dwas
┣ api
┃ ┣ collect
┃ ┃ ┗ collect.go
┃ ┗ api.go
┣ config
┃ ┗ config.go
┣ database
┃ ┗ new.go
┣ model
┣ server
┃ ┗ server.go
┣ static
┣ .dockerignore
┣ .gitignore
┣ compose.yaml
┣ Dockerfile
┣ example.yaml
┣ go.mod
┣ go.sum
┣ main.go
┗ readme.md
/api - collection of api
/config - config parser
/database - database functions
/model - database schema
/server - initial server settings
/static - store static file