Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/srjchsv/service
GO service
https://github.com/srjchsv/service
docker gin-gonic golang jwt postgres
Last synced: 1 day ago
JSON representation
GO service
- Host: GitHub
- URL: https://github.com/srjchsv/service
- Owner: srjchsv
- Created: 2022-08-12T21:21:11.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-17T10:22:39.000Z (over 1 year ago)
- Last Synced: 2024-06-20T14:23:45.989Z (5 months ago)
- Topics: docker, gin-gonic, golang, jwt, postgres
- Language: Go
- Homepage:
- Size: 184 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Educational project- Auth-Service
- Authorization and authentification using JWT
Used as auth-service for simple-bank https://github.com/srjchsv/simplebank
## Makefile commands to test endpoints:
- `make run` - runs db in container and the auth service
- `make signup` - perform a user registration
- `make signin` - sign in as a registered user. Get a token. Set cookie.
- `make api` - check if a signed in user with jwt token can be authenticated at a secured endpoint.
- `make refresh` - refresh token.
- `make logout` - delete cookie with token. logout.useful links:
- jwt, clean architecture, project structure, patterns, api https://www.youtube.com/watch?v=1LFbmWk7NLQ&list=PLbTTxxr-hMmyFAvyn7DeOgNRN8BQdjFm8&index=1