Skip to content

Gin Skeleton is a simple boilerplate to kickstart a web server project based on Gin Framework

License

Notifications You must be signed in to change notification settings

dodancs/gin-skeleton

Repository files navigation

gin-skeleton

Build Status Go Report License

Gin Skeleton is a simple boilerplate to kickstart a web server project based on Gin Framework.

Require go version >= 1.11, if your go version is 1.10, please use branch go1.10.

# start a web server listening on 0.0.0.0:8080
go run main.go

Components

Configuration

Edit the config.yml with your own config

Database Migration

Create the database first

CREATE DATABASE IF NOT EXISTS `gin` DEFAULT CHARACTER SET utf8mb4;

Migrates the database to the most recent version available

./migrate.sh up

Undo a database migration

./migrate.sh down

Show migration status

./migrate.sh status

Create a new migration

./migrate.sh new a_new_migration

About

Gin Skeleton is a simple boilerplate to kickstart a web server project based on Gin Framework

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Go 91.1%
  • HTML 5.8%
  • Shell 3.1%