# 1. Clone the repository or click on "Use this template" button.
git clone https://github.com/icezatoo/demo-go-api
# 2. Enter your newly-cloned folder.
cd demo-go-api
# 3. Run
go run main.go
Make sure you have the following installed:
Before start fill correct configurations in .env
file.
#########################
# APP DEVELOPMENT ENV
#########################
GO_PORT = 3000
GO_ENV = test
#########################
# PG DEVELOPMENT ENV
#########################
DATABASE_URI_PROD = postgres://admin:admin@123@localhost:5432/postgres
DATABASE_URI_DEV = postgres://admin:admin@123@localhost:5432/postgres
#########################
# JWT DEVELOPMENT ENV
########################
JWT_SECRET = 2c46f7651a176169c8d2f7aee60cce3da874501d
- gin-gonic (https://github.com/gin-gonic/gin)
- godotenv (https://github.com/joho/godotenv)
- jwt-go (https://github.com/dgrijalva/jwt-go)
- validator (https://github.com/go-playground/validator)
- gorm (https://gorm.io/index.html)
- go-playground-converter (https://github.com/restuwahyu13/go-playground-converter)