api about pokemon detail
- config number port
port: { { app-port } }
- config sqlite database name
dbname: { { sqlite-dbname } }
- config sqlite database path
dbpath: { { sqlite-dbpath } }
- config json data file path and file name
jsonDataFiles: pathFile: {{jsonDataFiles-pathFile}} nameFile: {{jsonDataFiles-nameFile}}
- config jwt-key secret
secrets: jwt-key: {{secrets-jwt-key}}
-
run install all package.
go mod tidy
- start go server.
go run cmd/main.go
-
run unit test all files and display coverage.
go test ./... -cover