abdil1234 / test-golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

##GOLANG TEST

Installation

  • git clone repo-url
  • docker-compose up
  • app running on port 9010

Configuration

Enter into mysql container

docker exec -it database-mysql bash

Run query

CREATE USER 'root'@'%' IDENTIFIED BY 'root';
GRANT ALL ON *.* TO 'root'@'%';
FLUSH PRIVILEGES;

Unit Testing

To run unit testing

go test  ./...

Game Post

POST http://localhost:9010/golang-test/api/v1/game
Screen Shot 2023-05-30 at 01 18 41

Game List

GET http://localhost:9010/golang-test/api/v1/games
Screen Shot 2023-05-30 at 01 19 34

About

License:Other


Languages

Language:Go 96.9%Language:Dockerfile 3.1%