adifahmi / learn-gin

Rest API with Gin Web Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Go 99.4%Language:Shell 0.6%