tracking-go

module
v0.0.0-...-bd14a77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: MIT

README

TRACKING SYSTEM

Quality gate

Bugs Code Smells Lines of Code

Installation
  1. Set GOPRIVATE environment to download private package
export GOPRIVATE=github.com/Tracking-SYS
  1. Compile & build execute binary file
make default
  1. Up server
make run
  1. 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
  1. Set environment variables
export MYSQL_ADDR=root:123@tcp(localhost:3306)/tracking
  1. 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
  1. 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

Contributor Covenant

Directories

Path Synopsis
utils

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL