NBA Simulator Project With Go
Table of Contents
- Golang
- Docker
- Clone the repo
git clone https://github.com/muhammedikinci/nba_stats cd ./nba_stats
- Build docker compose file
docker compose build --no-cache
- Run
docker compose up
- API can be restarted many times until MySQL is ready to accept the connection
restart: on-failure
This action needs the installation of PostgreSQL manually.
-
Clone the repo
git clone https://github.com/muhammedikinci/nba_stats cd ./nba_stats
-
Install Go dependencies
go mod download
-
Start MYSQL Service and Create
nba
database -
Change database root password from
repository
-
Start API without build
go run .
Getting current simulation status
curl --location --request GET '/simulation'
Starting simulation
curl --location --request POST '/simulation/start'
Stopping simulation
curl --location --request DELETE '/simulation/stop'
Getting current week stats.
curl --location --request GET '/simulation/current-round'
Muhammed İKİNCİ - muhammedikinci@outlook.com