simple-authentication-with-jwt

command module
v0.0.0-...-a371a4b Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

README

Simple Authentication WebApp

A simple authentication web app in Go (using JWT)

Routes

Path Method Data
/api/v1/auth/register POST {"firstname":,"lastname":,"email":,"username":,"password":}
/api/v1/auth/login POST {"email":,"password":}
/apiv1/auth/delete GET None

Install Dependencies

go get -u github.com/dgrijalva/jwt-go
go get -u github.com/gin-gonic/gin
go get -u github.com/go-playground/validator/v10
go get -u gopkg.in/yaml.v3
go get -u gorm.io/driver/postgres
go get -u gorm.io/gorm

Usage

Put your postgres connection details in config.yaml
Run this command below:

go run

License

GNU General Public License, version 3

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
dto
pkg
jwt

Jump to

Keyboard shortcuts

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