- Prerequisite: golang version 1. 19 should be installed.
-
Clone this Repository.
-
Open terminal and go inside this Repository
-
To sync go packages you need to run following command.
-
Copy
.env.example
as.env
for environment variables.
NOTE: The note content. Following command is use to remove unused package from your
go.mod
andgo.sum
files.(If change any package)
go mod tidy
5 make start : To start api, it basically runs go run app.go api
- Run
docker-compose up
NOTE: Currently have one single api
'http://127.0.0.1:3000/api/v1/getdata'
curl --location --request GET 'http://127.0.0.1:3000/api/v1/getdata'