{"id":20765324,"url":"https://github.com/gunavault/go-gin-postgres-template","last_synced_at":"2026-05-08T05:48:48.843Z","repository":{"id":263089610,"uuid":"888545939","full_name":"gunavault/Go-Gin-Postgres-template","owner":"gunavault","description":"GO GIN Postgres API template","archived":false,"fork":false,"pushed_at":"2024-11-17T15:55:19.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T18:53:25.857Z","etag":null,"topics":["api","gin","gin-gonic","go","golang","postgresql","template"],"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/gunavault.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-14T15:28:24.000Z","updated_at":"2024-11-17T15:55:22.000Z","dependencies_parsed_at":"2024-11-16T08:00:16.878Z","dependency_job_id":"b1a79d87-86ab-4d74-8590-83657abc8eca","html_url":"https://github.com/gunavault/Go-Gin-Postgres-template","commit_stats":null,"previous_names":["gunavault/go-gin-postgres-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/gunavault/Go-Gin-Postgres-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gunavault%2FGo-Gin-Postgres-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gunavault%2FGo-Gin-Postgres-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gunavault%2FGo-Gin-Postgres-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gunavault%2FGo-Gin-Postgres-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gunavault","download_url":"https://codeload.github.com/gunavault/Go-Gin-Postgres-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gunavault%2FGo-Gin-Postgres-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28020080,"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","status":"online","status_checked_at":"2025-12-25T02:00:05.988Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","gin","gin-gonic","go","golang","postgresql","template"],"created_at":"2024-11-17T11:16:12.059Z","updated_at":"2025-12-25T05:11:10.296Z","avatar_url":"https://github.com/gunavault.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GO GIN POSTGRES API Template [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/gunavault/Go-Gin-Postgres-template/blob/main/LICENSE)\n\nThis is a GO GIN POSTGRES API Template built with Go and the Gin framework. It allows user registration, login, and access to user information with JWT-based authentication. you can custom this API as you need. _I'll update this template little by little when I have a chance_.\n\n\n## Features\n\n- User registration with password hashing\n- User login with JWT token generation\n- Example of Basic Crud\n- JWT-based authentication middleware\n- Testing API with get User\n\n## Setup\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/gunavault/Go-Gin-Postgres-template.git\n   cd Go-Gin-Postgres-template\n2. Install Dependency:\n   ```bash\n   go mod tidy\n3. Copy .env.example and make adjustment on your .env\n3. Create a PostgreSQL database and Ensure the required uuid-ossp extension is enabled for UUID generation.\n4. run the query from `query.sql`\n5. run the code :\n   ```bash\n   go run main.go\n\n## Endpoints\n- POST`/login`\n- POST`/register`\n- GET`/users`\n- GET`/user/username`\n  \nYou can find more the endpoint at thunderclient collection `thunder-collection_Go Gin postgres API template.json`\n\n## License\n[MIT licensed](./LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgunavault%2Fgo-gin-postgres-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgunavault%2Fgo-gin-postgres-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgunavault%2Fgo-gin-postgres-template/lists"}