https://github.com/zennon-sml/go-jwt-react-2
React with Golang JWT Authentication - (FREE CODE CAMP Tutorial)
https://github.com/zennon-sml/go-jwt-react-2
Last synced: about 1 month ago
JSON representation
React with Golang JWT Authentication - (FREE CODE CAMP Tutorial)
- Host: GitHub
- URL: https://github.com/zennon-sml/go-jwt-react-2
- Owner: zennon-sml
- Created: 2022-12-23T13:11:58.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T00:58:37.000Z (over 2 years ago)
- Last Synced: 2023-05-09T20:32:42.194Z (almost 2 years ago)
- Language: TypeScript
- Homepage:
- Size: 703 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

GOLANG JWT AUTH API WITH REACT
- [x] Using **GIN** has server and main tool
- [x] Making a basic **auth process** from the **JSON requests**
- [x] Creating **cookies http/only** for security
- [x] Keeping the data on a **postgres** online database
- [x] **Learning** and **listening** to some **music** while at it
- [x] And at last but not least having some **fun :}**## SERVER
- [X] [GIN](https://pkg.go.dev/github.com/gin-gonic/gin): deal with requests and responses, set cookies and the JWT token## ROUTES
- [x] POST /v1/register --> github.com/zennon-sml/GJR2/controllers.Register (3 handlers)
- [x] POST /v1/login --> github.com/zennon-sml/GJR2/controllers.Login (3 handlers)
- [x] POST /v1/logout --> github.com/zennon-sml/GJR2/controllers.Logout (3 handlers)
- [x] GET /v1/userauth --> github.com/zennon-sml/GJR2/controllers.UserAuth (3 handlers)## DATABASE
- [x] POSTGRES: database hosted on [ElephantSQL](https://www.elephantsql.com/) and also seted up a local postgres container## ORM
- [x] [GORM](https://gorm.io/docs/index.html): object relational maping for the database## ENVIROMENT
- [x] [godotenv](https://github.com/joho/godotenv): way to get enviroment variables from .env## JWT
- [x] [JWT](https://pkg.go.dev/github.com/golang-jwt/jwt/v4): go package to make a json web token## PASSWORD SAFETY
- [x] [BCRYPT](https://pkg.go.dev/golang.org/x/crypto/bcrypt): password encrypiting and decripter## POSTMAN
- [x] [POSTMAN](https://www.postman.com/): use for testing the back end with requests