icezatoo / demo-go-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple golang with gin

Getting started

# 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

Setup and development

First-time setup

Make sure you have the following installed:

Configuration

Before start fill correct configurations in .env file.

Simple environment

#########################
# 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

Web Framework

Dependency

About


Languages

Language:Go 97.2%Language:Makefile 2.8%