项目作者: dekaulitz

项目描述 :
Golang with gin framework starterpack
高级语言: Go
项目地址: git://github.com/dekaulitz/demoGo.git
创建时间: 2019-05-26T06:31:03Z
项目社区:https://github.com/dekaulitz/demoGo

开源协议:MIT License

下载


Technology Stack

Following is technology stack that is used in this microservice

Name Description
Golang Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Glide Package Management for Go.
Mysql Connection Simple and Powerful ORM for Go, support mysql,postgres,tidb,sqlite3,mssql,oracle
Mysql Driver Mysql driver for database connection

Backend Setup

First, clone this repo on golang src directory ($GOPATH/src) by using this command:

  1. cd $GOPATH/src && git clone https://github.com/dekaulitz/demoGo

and then, edit .env file to be the expected configuration to .env.test.
if you using the different path you can edit the configuration path on file config.go

use Glide to install this repo dependencies:

  1. glide install

and then build the project

  1. go build

Finally, we can start the server by running:

  1. go run main.go