go-auth is a project that implements authentication and authorization in Golang using gin-gonic, postgreSQL, and JWT.
- Go v1.15 or higher
- PostgreSQL
- Gin-Gonic
Clone the repository:
git clone https://github.com/tanmayVaish/go-auth
Go to the project directory:
cd go-auth
Download dependencies:
go mod tidy
Running the Project
go run main.go
If you want a complete walkthrough of this project. Do check out this blog I have written:
How to Implement Authentication and Authorization in Golang
We welcome contributions! If you find a bug or want to request a new feature, please open an issue. If you want to contribute to the code, please open a pull request.
go-auth is licensed under the MIT License. See LICENSE for details.