muliadi / golang-rest-api-sample

REST API sample with authentication write in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

REST API Sample Write in Go

project features

  • using echo as high performance framework
  • implement custom Error Handling
  • implement OAuth Authentication mechanism
  • using JWT as Token via jwt-go package
  • implement Role base authorization
  • wtire unit test for API endpoint and middlewares
  • using glide as package manager

project dependencies

  1. install Golang run and tested in Go 1.6
  2. install Glide as package manager
  3. have MongoDB instance in your localhost for store data

how to use from this sample project

clone the repository
git clone https://github.com/atahani/golang-rest-api-sample.git
cd golang-rest-api-sample
install dependencies via glide
glide install
build, serve or test using make
make build
make serve
make test

About

REST API sample with authentication write in Go

License:Other


Languages

Language:Go 98.2%Language:Makefile 1.8%