Skip to content

dnguyenngoc/golang-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skeleton go gin/gorm

This is project structure golang gin/gorm framework restfull api. 🔥 🔥 🔥.

Screenshots & Gifs

Gallery


Contents

Gin Web Framework

Gin is a web framework written in Go (Golang). It features a martini-like API with performance that is up to 40 times faster thanks to gin-gonic. If you need performance and good productivity, you will love Gin.

Gorm

The fantastic ORM library for Golang aims to be developer friendly. docs at gorm

Postgresql

PostgreSQL is a powerful, open source object-relational database system with over 30 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance. docs at postgresql

Structure

├── src
│   ├──controllers // controller
│       └── v1.go
│   ├──databases
│       └── models.go // model, get data from database 
│       └── db_connect.go // model, get data from database 
│   ├──helpers
│       └── time.go // utils handle time 
│   ├──routes
│       └── v1.go // router for v1 api config
│   ├──securities
│       └──auth.go // token handle
│   ├──settings
│       └──config.go // config and environment 
│   ├──template // html template and more
│   ├──go.mod // go module
│   ├──go.sum // go module
├── docker-compose.yaml // container with compose
└── Dockerfile // dockerfile

For Dev

1. Install docker and docker-compose:

https://www.docker.com/

2. Clone this repo

git clone https://github.com/apot-group/golang-skeleton.git

3. From project dir

docker-compose up --build

4. Api doc

http://localhost:8080/api/docs#/

Contact Us

Email-1: duynguyenngoc@hotmail.com - Duy Nguyen

Email-2: ngocnghia128@gmail.com - Nghia Nguyen

Instagram-1: @duy.nguyen.ngoc ❤️ ❤️ ❤️

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published