Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/2yuri/webapi-with-auth


https://github.com/2yuri/webapi-with-auth

Last synced: 2 days ago
JSON representation

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