gruberchris / go-jwt

This is a quick tutorial on how to create a simple RESTful API using Go. The API will use JWT for authentication and demonstrate route authorization.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go API With JWT Auth Example

This is a quick tutorial on how to create a simple RESTful API using Go. The API will use JWT for authentication and demonstrate route authorization.

Dependencies

Compile Daemon for Go

go get github.com/githubnemo/CompileDaemon
go install github.com/githubnemo/CompileDaemon

Run

First use the build script in the Makefile to build the binary. Then, it may be launched for development by using the following script in the shell:

CompileDaemon --command="./bin/go-jwt"

Alternatively, the binary may be launched directly:

./bin/go-jwt

or by using the run script in the Makefile:

make run

About

This is a quick tutorial on how to create a simple RESTful API using Go. The API will use JWT for authentication and demonstrate route authorization.


Languages

Language:Go 88.6%Language:Makefile 11.4%