- mysql database
- go 1.12.x
- Migrate database from file xfers/database/migrations/schema.sql
- Open file .env at folder
DB_DRIVER=mysql
DB_USER=${dbuser}
DB_PASSWORD=${dbpassword}
DB_HOST=${dbhostname}
DB_PORT=3306
DB_DATABASE=xfers
- Change value for this parameter (for hostname,you can use your IP) :
- ${dbuser}
- ${dbpassword}
- ${dbhostname}
- ensure you have migrate all databases.
- ensure you have change the environment file.
- build binaries using this command
$ go build -o app
- run binary using this command
$ ./app
- note : this service default port will be 7000.
- open postman
- import postman file
BCG.postman_collection.json
- execute postman
- Go to folder xfers2021/domain/kurs/ then run this command
$ go test