Create .env
file with detail below
DB_USERNAME=(your database username)
DB_PASSWORD=(your database password)
DB_DATABASE=(your database name)
- Make sure
Go
andMySQL
had been installed and running - Type
go mod download
to install packages that needed - Type
go build
to compile executable file - Run
./foreign-currency-go
(in MacoS/Linux) orforeign-currency-go.exe
(in Windows)