Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 547 Bytes

File metadata and controls

41 lines (27 loc) · 547 Bytes

gin-demo

Go Gin Demo GoLang

Step to RUN projects

1. Fetch Dependency:

go mod tidy

2. Environment Settings:

Copy docker/.env.sample to docker/.env and write environment details. Then export using this command.

cp docker/.env{.sample,}
export $(cat docker/.env | xargs)

3. Build Project:

go build

4. Run Application:

./gin-demo

Or run with docker:

cd docker
docker-compose up --build

Now your api is running on 3000 port (if you use docker then port is 3001).