Skip to content

dxps/go-mux-jwt-gorm-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starter Project for Go using Mux, JWT, and GORM

This is a starter project for a GoLang implementation of an HTTP (such as RESTful) API using:

  • Gorilla Mux - as the HTTP router
  • JWT - JSON Web Tokens, one of the popular standard for protecting endpoints
  • GORM - the ORM layer, used for a high-level interaction with the database

Setup

In terms of prerequisites:

  • The dependencies are managed by Go Modules, so this is taken care implicitly (no manual action required)
  • For restarting on changes (the process is restarted, we don't aim for "live reloading" now), air utility is used in the run script. Just install this tool using go get -u github.com/cosmtrek/air.

Run

TODO: add air setup For now, the classic way go run cmd/server.go does the job.

About

Starter project for a GoLang implementation of an HTTP (such as RESTful) API using Gorilla Mux, JWT, and GORM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published