Files
17th-UnitTracker-API/README.md
2024-02-28 11:14:48 -08:00

554 B

Unit Tracker API

Configure

  1. Copy .env.example to .env
  2. Set the environment variables in .env

Run

  1. Put your static files in the static folder
  2. Run the server

Docker

# Startup
docker compose -f "docker-compose.yaml" up -d --build
# Shutdown
docker compose -f "docker-compose.yaml" down

Build binary with Go toolchain

go build -o unit-tracker-api.exe ./api
.\unit-tracker-api.exe

Use

Example endpoints:

http://localhost:1323/api/v1/members http://localhost:1323/api/v1/members/3