{"id":15470582,"url":"https://github.com/raihan2bd/jwt-authentication-golang","last_synced_at":"2026-05-18T04:35:42.937Z","repository":{"id":194998626,"uuid":"691441878","full_name":"raihan2bd/jwt-authentication-golang","owner":"raihan2bd","description":"A Go-based web application using PostgreSQL for data storage, GORM for database interaction, and Gin for routing. It offers user registration, login, and authentication with JWT tokens for secure access to protected routes.","archived":false,"fork":false,"pushed_at":"2023-09-15T12:55:32.000Z","size":32325,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-02-02T13:12:16.483Z","etag":null,"topics":["gin","go","golang","gorm","jwt","posgresql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raihan2bd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-14T07:28:23.000Z","updated_at":"2024-11-24T14:00:34.000Z","dependencies_parsed_at":"2023-09-16T05:27:57.178Z","dependency_job_id":null,"html_url":"https://github.com/raihan2bd/jwt-authentication-golang","commit_stats":null,"previous_names":["raihan2bd/jwt-authentication-golang"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raihan2bd%2Fjwt-authentication-golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raihan2bd%2Fjwt-authentication-golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raihan2bd%2Fjwt-authentication-golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raihan2bd%2Fjwt-authentication-golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raihan2bd","download_url":"https://codeload.github.com/raihan2bd/jwt-authentication-golang/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246034158,"owners_count":20712851,"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":["gin","go","golang","gorm","jwt","posgresql"],"created_at":"2024-10-02T02:05:34.424Z","updated_at":"2025-10-03T20:45:31.002Z","avatar_url":"https://github.com/raihan2bd.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\u003ch1 align='center'\u003eJwt Authentication with Golang\u003c/h1\u003e\n\n\n# 📗 Table of Contents\n\n- [📗 Table of Contents](#-table-of-contents)\n- [ jwt-authentication-golang ](#-about-project-)\n  - [🛠 Built With ](#-built-with-)\n    - [Tech Stack ](#tech-stack-)\n    - [Key Features ](#key-features-)\n  - [💻 Getting Started ](#-getting-started-)\n    - [Prerequisites](#prerequisites)\n    - [Setup](#setup)\n    - [Install](#install)\n    - [Usage](#usage)\n    - [Build](#build)\n  - [👥 Author ](#-author-)\n  - [🔭 Future Features ](#-future-features-)\n  - [🤝 Contributing ](#-contributing-)\n  - [⭐️ Show your support ](#️-show-your-support-)\n  - [🙏 Acknowledgments ](#-acknowledgments-)\n  - [📝 License ](#-license-)\n\n\n# Jwt Authentication with Golang and Gorm\nA Go-based web application using PostgreSQL for data storage, GORM for database interaction, and Gin for routing. It offers user registration, login, and authentication with JWT tokens for secure access to protected routes.\n\u003ca name=\"about-project\"\u003e\u003c/a\u003e\n\n\n## 🛠 Built With \u003ca name=\"built-with\"\u003e\u003c/a\u003e\n### Tech Stack \u003ca name=\"tech-stack\"\u003e\u003c/a\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eBack End\u003c/summary\u003e\n  \u003cul\u003e\n    \u003cli\u003eGolang\u003c/li\u003e\n    \u003cli\u003ePostgreSQL\u003c/li\u003e\n    \u003cli\u003eGin\u003c/li\u003e\n    \u003cli\u003eGorm\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/details\u003e\n\n### Key Features \u003ca name=\"key-features\"\u003e\u003c/a\u003e\n\n- Users can login\n- User can signup\n- User can check if they are authenticated or not\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## 💻 Getting Started \u003ca name=\"getting-started\"\u003e\u003c/a\u003e \n\nTo get a local copy up and running, follow these steps.\n\n### Prerequisites\n\nIn order to run this project you need:\n- Then Make sure you have installed [Go (golang)](https://go.dev/dl/) version 1.20.4 or the latest stable version.\n- Then make sure you have installed [PostgreSQL](https://www.postgresql.org/) on your local machine if you want to use this project locally.\n- Then Create a database called `jwt-go-pos`\n\n### Setup\n\n- Clone this repository to your desired folder:\n\n```sh\n  cd your-folder\n  https://github.com/raihan2bd/jwt-authentication-golang.git\n```\n\n- Before running the project please make sure you create a `.env` file to your project root directory and add `DATABASE_URI`, and `JWT_SECRET_KEY` environment variables to the file. For example:\n```\nDATABASE_URI=\"host=localhost port=5432 dbname=jwt-go-pos user=postgres password=your password sslmode=disable\"\nJWT_SECRET=\"your jwt secret key\"\n```\n\n### Install\n\nInstall this project with:\n\n- Install the required gems with:\n\n```sh\ngo mod tidy\n```\n\n### Usage\n\n- To run the development server, execute the following command:\n\n```sh\ngo run .\n```\n\n### Build\n\n- To build the project for production-ready run the following command:\n\n```sh\ngo build -o myapp\n```\n\n- To run the build file\n  \n  ```sh\n  ./myapp\n  ```\n\n\n## 👥 Author \u003ca name=\"author\"\u003e\u003c/a\u003e\n\n👤 **Abu Raihan**\n\n- GitHub: [@raihan2bd](https://github.com/raihan2bd)\n- Twitter: [@raihan2bd](https://twitter.com/raihan2bd)\n- LinkedIn: [raihan2bd](https://linkedin.com/in/raihan2bd)\n  \n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n## 🔭 Future Features \u003ca name=\"future-features\"\u003e\u003c/a\u003e\n\n- [ ] **I will add more end-points to this project**\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n## 🤝 Contributing \u003ca name=\"contributing\"\u003e\u003c/a\u003e\n\nContributions, issues, and feature requests are welcome!\n\nFeel free to check the [issues page](https://github.com/raihan2bd/jwt-authentication-golang/issues).\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n## ⭐️ Show your support \u003ca name=\"support\"\u003e\u003c/a\u003e\n\nIf you like this project, please leave a ⭐️\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n## 🙏 Acknowledgments \u003ca name=\"acknowledgements\"\u003e\u003c/a\u003e\n\nI would like to thank [Trevor Sawler](https://www.gocode.ca/) Who helped me a lot to learn Golang.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n## 📝 License \u003ca name=\"license\"\u003e\u003c/a\u003e\n\nThis project is [MIT](./LICENSE) licensed.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraihan2bd%2Fjwt-authentication-golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraihan2bd%2Fjwt-authentication-golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraihan2bd%2Fjwt-authentication-golang/lists"}