{"id":15095885,"url":"https://github.com/amit9887/jwt-authentication-gin-golang","last_synced_at":"2026-01-11T06:04:24.555Z","repository":{"id":251616397,"uuid":"837922186","full_name":"Amit9887/jwt-authentication-gin-golang","owner":"Amit9887","description":"This repository contains a basic JWT authentication system built with Golang. It utilizes the Gin framework for HTTP handling, Gorm for ORM, and MySQL as the database. The project demonstrates secure user authentication using JSON Web Tokens (JWT).","archived":false,"fork":false,"pushed_at":"2024-08-05T09:12:28.000Z","size":9276,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T03:34:16.481Z","etag":null,"topics":["authentication","gin","golang","gorm","jwt","mysql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Amit9887.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-04T12:54:03.000Z","updated_at":"2024-08-05T09:12:31.000Z","dependencies_parsed_at":"2025-02-26T03:32:33.106Z","dependency_job_id":"7deea364-61fe-495b-9557-1905751ac59f","html_url":"https://github.com/Amit9887/jwt-authentication-gin-golang","commit_stats":null,"previous_names":["amit9887/jwt-authentication-gin-golang"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amit9887%2Fjwt-authentication-gin-golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amit9887%2Fjwt-authentication-gin-golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amit9887%2Fjwt-authentication-gin-golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amit9887%2Fjwt-authentication-gin-golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amit9887","download_url":"https://codeload.github.com/Amit9887/jwt-authentication-gin-golang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246512635,"owners_count":20789742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","gin","golang","gorm","jwt","mysql"],"created_at":"2024-09-25T15:43:07.416Z","updated_at":"2026-01-11T06:04:24.522Z","avatar_url":"https://github.com/Amit9887.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Go JWT Authentication\nWelcome to the Go JWT Authentication project! This repository contains a robust and secure JWT authentication system built with Golang. It leverages the power of Gin for the HTTP framework, Gorm for ORM, and MySQL as the database. Let's get you started!\n\n✨ Features\nJWT Authentication: Secure authentication using JSON Web Tokens.\nGin Framework: Fast and easy-to-use HTTP web framework.\nGorm ORM: Powerful ORM library for Golang.\nMySQL Database: Reliable and scalable database solution.\n�� Prerequisites\nBefore you begin, ensure you have the following installed on your system:\n\nGolang\n�� Installation\nFollow these steps to set up the project on your local machine:\n\nClone the repository:\n\n    git clone https://github.com/your-repo/go-jwt-authentication.git\n    cd go-jwt-authentication\n    \n\n\n\nInstall the required packages:\n\n    go get -u gorm.io/gorm\n    go get -u gorm.io/driver/mysql\n    go get -u github.com/gin-gonic/gin\n    go get -u golang.org/x/crypto/bcrypt\n    go get -u github.com/golang-jwt/jwt/v5\n    go get github.com/lpernett/godotenv\n    go get github.com/githubnemo/CompileDaemon\n    \n\n\n\n��️ Configuration\nDatabase Connection:\n\nReplace the database connection string in the .env file with your specific database configuration.\n\nSecret Key:\n\nYou can also change the secret key for JWT in the .env file.\n\n�� Build and Run\nBuild the project:\n\n    go build -o go-jwt-authentication\n    \n\n\n\nRun the executable binary:\n\n    ./go-jwt-authentication\n    \n\n\n\n�� Testing\nUse Postman or Thunder Client to test the API endpoints. Remember to add the token only to the cookies. The API endpoints available for testing are:\n\nSignup:\n\n    POST http://localhost:9090/signup\n    \nLogin:\n\n    POST http://localhost:9090/login\n\nValidate:\n\n    GET http://localhost:9090/validate\n    \n\n\n\n��️ Technology Stack\nGolang: Programming language.\nGin: HTTP web framework.\nGorm: ORM library.\nJWT: JSON Web Tokens for authentication.\nMySQL: Database.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famit9887%2Fjwt-authentication-gin-golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famit9887%2Fjwt-authentication-gin-golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famit9887%2Fjwt-authentication-gin-golang/lists"}