TRACKING SYSTEM



Installation
- Set GOPRIVATE environment to download private package
export GOPRIVATE=github.com/Tracking-SYS
- Compile & build execute binary file
make default
- Up server
make run
- Install migrate command
curl -L https://github.com/golang-migrate/migrate/releases/download/v4.14.1/migrate.darwin-amd64.tar.gz | tar xvz
mv migrate.darwin-amd64 migrate
- Set environment variables
export MYSQL_ADDR=root:123@tcp(localhost:3306)/tracking
- Run migration with version 1
./migrate.sh up
Tips
Downgrade Go modules
go get -u github.com/apache/thrift@v0.13.0
go mod tidy
go clean -modcache
go mod vendor
Kafka Setup
- Edit configuration of kafka advertise listener to public interface (public IP of VM)
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://broker:29092,PLAINTEXT_HOST://[public IP]:9092
Locust
API Documentation
