/test-sms-2-pro

api about pokemon detail

Primary LanguageGo

test-sms-2-pro

api about pokemon detail

Setup and Run:

Setup

install

config at path "config/confg.yaml"

  1. config number port
        port: { { app-port } }
  2. config sqlite database name
        dbname: { { sqlite-dbname } }
  3. config sqlite database path
        dbpath: { { sqlite-dbpath } }
  4. config json data file path and file name
        jsonDataFiles:
            pathFile: {{jsonDataFiles-pathFile}}
            nameFile: {{jsonDataFiles-nameFile}}
  5. config jwt-key secret
       secrets:
        jwt-key: {{secrets-jwt-key}}

Run Go

  1. run install all package.

    go mod tidy
    1. start go server.
    go run cmd/main.go

test Go

  1. run unit test all files and display coverage.

    go test ./... -cover