Skip to content

icezatoo/demo-go-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published