https://github.com/mrinjamul/gin-example
https://github.com/mrinjamul/gin-example
docker gin gin-demo gin-gonic golang
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrinjamul/gin-example
- Owner: mrinjamul
- Created: 2020-07-10T05:31:03.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-09T04:44:52.000Z (almost 6 years ago)
- Last Synced: 2025-02-01T18:43:49.678Z (over 1 year ago)
- Topics: docker, gin, gin-demo, gin-gonic, golang
- Language: Go
- Homepage:
- Size: 16.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gin-demo
Go Gin Demo GoLang
## Step to RUN projects
**1. Fetch Dependency:**
```sh
go mod tidy
```
**2. Environment Settings:**
Copy `docker/.env.sample` to `docker/.env` and write environment details. Then export using this command.
```sh
cp docker/.env{.sample,}
export $(cat docker/.env | xargs)
```
**3. Build Project:**
```sh
go build
```
**4. Run Application:**
```sh
./gin-demo
```
Or run with docker:
```sh
cd docker
docker-compose up --build
```
Now your api is running on 3000 port (if you use docker then port is 3001).