Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/2yuri/webapi-with-auth
https://github.com/2yuri/webapi-with-auth
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/2yuri/webapi-with-auth
- Owner: 2yuri
- Created: 2021-05-24T23:18:42.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-14T17:36:25.000Z (almost 3 years ago)
- Last Synced: 2023-03-11T11:34:01.677Z (over 1 year ago)
- Language: Go
- Size: 35.2 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WEBAPI and AUTH with GOLANG
## Acesse no youtube:
### API Docs
- JSON file at docs/insomnia_file.json
### Run Database
```
$ docker-compose up --build
```## Introdução
- [x] O que é JWT
```bash
go get github.com/dgrijalva/jwt-go
```- [x] LGPD
## Passo a passo
- [x] Clonar repositório base
```bash
https://github.com/hyperyuri/webapi-with-go
```- [x] Criar usuario (model e controller)
- [x] Encode password para SHA256
- [x] Gerar JWT
- [x] Criar login (model e controller)
- [x] Criar middlewares no GIN