Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/red-life/simple-authentication-with-jwt
A simple authentication web application in Golang (using jwt)
https://github.com/red-life/simple-authentication-with-jwt
authentication gin golang jwt
Last synced: 2 months ago
JSON representation
A simple authentication web application in Golang (using jwt)
- Host: GitHub
- URL: https://github.com/red-life/simple-authentication-with-jwt
- Owner: red-life
- License: gpl-3.0
- Created: 2022-02-02T19:02:12.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-04T09:13:24.000Z (almost 3 years ago)
- Last Synced: 2024-10-02T05:23:07.512Z (3 months ago)
- Topics: authentication, gin, golang, jwt
- Language: Go
- Homepage:
- Size: 44.9 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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