https://github.com/raianeeunice/api-bookstore-go
Projetinho de Golang.
https://github.com/raianeeunice/api-bookstore-go
gin golang gorm jwt
Last synced: about 2 months ago
JSON representation
Projetinho de Golang.
- Host: GitHub
- URL: https://github.com/raianeeunice/api-bookstore-go
- Owner: raianeeunice
- Created: 2021-12-21T17:14:21.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-20T19:34:06.000Z (almost 4 years ago)
- Last Synced: 2025-03-11T16:42:59.705Z (over 1 year ago)
- Topics: gin, golang, gorm, jwt
- Language: Go
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# REST-API Golang
- [x] go get github.com/gin-gonic/gin
- [x] go get gorm.io/gorm
- [x] go get github.com/dgrijalva/jwt-go
- [x] go get gorm.io/driver/mysql
- [x] go get github.com/joho/godotenv
- [x] go get github.com/mashingan/smapping
- [x] go get golang.org/x/crypto/bcrypt
## Operações possíveis
1. Editar o livro
2. Listar os livros por id
3. Postar um livro
4. Listar todos os livros
5. Deletar um livro
6. Criar um usuário
7. Logar
8. Editar
9. Buscar Livros relacionados ao meu usuario
## Banco de dados escolhido
- *MySQL*
## Observação
- Precisa criar um arquivo .env com esses dados:
```
DB_USER=
DB_PASS=
DB_HOST=localhost
DB_NAME=
JWT_SECRET=
```