go-mux-jwt-gorm-starter

module
v0.0.0-...-5e14d7d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2020 License: MIT

README

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.

Directories

Path Synopsis
api
app

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL