Skip to content

wendylau87/xfers2021

Repository files navigation

Xfers 2021

Pre-requisites

  • mysql database
  • go 1.12.x

Import Database

  1. Migrate database from file xfers/database/migrations/schema.sql

Setting environment

  1. Open file .env at folder
DB_DRIVER=mysql
DB_USER=${dbuser}
DB_PASSWORD=${dbpassword}
DB_HOST=${dbhostname}
DB_PORT=3306
DB_DATABASE=xfers
  1. Change value for this parameter (for hostname,you can use your IP) :
    • ${dbuser}
    • ${dbpassword}
    • ${dbhostname}

How to run services

  1. ensure you have migrate all databases.
  2. ensure you have change the environment file.
  3. build binaries using this command
$ go build -o app
  1. run binary using this command
$ ./app
  1. note : this service default port will be 7000.

Testing the service

  1. open postman
  2. import postman file BCG.postman_collection.json
  3. execute postman

Unit test

  1. Go to folder xfers2021/domain/kurs/ then run this command
$ go test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published