Skip to content

adifahmi/learn-gin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go rest-api

For learning purpose

Database Setup

Update .env file to match your environment, then create new DB

CREATE DATABASE `gin_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

Project Setup & Run

$ go get
$ go run main.go

To explicitly compile the code before you run the server:

$ go build main.go
$ ./main

Live-reload for development

Install gin live-reload and run

$ go get github.com/codegangsta/gin
$ bash scripts/run-dev.sh

Postman Docs:

https://documenter.getpostman.com/view/620074/SVYtLx7M?version=latest

Also using:

About

Rest API with Gin Web Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages