- Download Docker
- Open a terminal in the project folder and type
docker-compose build
to build project. - Then type
docker-compose up mysql
to start MySQL server. - After the MySQL server has finished starting open a new terminal and
type
docker-compose up server
to start go server.
- setup a MySQL Server.
- setup a DBA user for that Server.
- run sql/hostScheme.sql on the MySQL Server.
- write the proper DB url and user credential in host/dbconfig/secret.go
- build autodb/host and put the executable in bin/
- run the executable
- run sql/testData.sql
- run go test.