{"id":28718634,"url":"https://github.com/majdsassi/go-url","last_synced_at":"2026-04-21T05:33:25.231Z","repository":{"id":299083452,"uuid":"1002007601","full_name":"majdsassi/go-url","owner":"majdsassi","description":"Go-Url is a modern, full-stack URL shortener built using Go. It leverages the Gin framework for routing, GORM for ORM/database management, and HTMX for dynamic, responsive frontend behavior. Ideal for developers seeking a practical example of a Go web app with a modern frontend.","archived":false,"fork":false,"pushed_at":"2025-06-14T15:05:34.000Z","size":549,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-14T15:41:13.826Z","etag":null,"topics":["backend","gin-framework","gin-gonic","go","go-backend","go-htmx","go-project","golang","gorm-orm","htmx","link-shortener","self-hosted","url","url-shortener"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/majdsassi.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,"zenodo":null}},"created_at":"2025-06-14T14:12:38.000Z","updated_at":"2025-06-14T15:05:37.000Z","dependencies_parsed_at":"2025-06-14T15:41:19.013Z","dependency_job_id":"d21873ca-903a-47bc-bdd1-3622a6fd7a6b","html_url":"https://github.com/majdsassi/go-url","commit_stats":null,"previous_names":["majdsassi/go-url"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/majdsassi/go-url","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majdsassi%2Fgo-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majdsassi%2Fgo-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majdsassi%2Fgo-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majdsassi%2Fgo-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/majdsassi","download_url":"https://codeload.github.com/majdsassi/go-url/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majdsassi%2Fgo-url/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018112,"owners_count":26086281,"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-10-14T02:00:06.444Z","response_time":60,"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":["backend","gin-framework","gin-gonic","go","go-backend","go-htmx","go-project","golang","gorm-orm","htmx","link-shortener","self-hosted","url","url-shortener"],"created_at":"2025-06-15T05:01:56.158Z","updated_at":"2025-10-14T06:34:47.336Z","avatar_url":"https://github.com/majdsassi.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go-Url\n\nA modern, self-hosted URL shortener built with Go, Gin, GORM, and HTMX.\n## 💻Demo \n![image](https://github.com/user-attachments/assets/ae72d36d-6c8c-4cb6-a95d-87838d9d5932)\n\n\n## ✨ Features\n\n- ✅ Create and manage shortened URLs\n- 🚀 Fast redirects using Gin\n- 🗃️ Persistent storage with GORM and MySQL \n- ⚡ Dynamic frontend updates via HTMX (no page reloads)\n- 🔐 Unique shortcodes generation\n- 📊 Link Visits\n\n## 🏗️ Tech Stack\n\n- [Go](https://golang.org/)\n- [Gin](https://github.com/gin-gonic/gin) - High-performance web framework\n- [GORM](https://gorm.io/) - ORM for Go\n- [HTMX](https://htmx.org/) - Modern frontend interaction without full-page reloads\n\n## 🧪 Getting Started\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/majdsassi/go-url.git\ncd go-url\n```\n### 2 . Install Dependencies \n```go\ngo mod tidy\n```\n### 3. Create your local variables\n```env\nDBURL=\"db_user:db_password@tcp(127.0.0.1:3306)/db_name?charset=utf8mb4\u0026parseTime=True\u0026loc=Local\"\n```\n(if your db does require a password leave it empty and if ur db is remote change the tcp values with db_url:port ) \n### 5. Migrate  Your Database\n```go\ngo run migration/migrate.go\n```\n### 6. Run Your App \n```go\ngo run main.go\n```\nOR Run it Using [CompileDaemon](https://github.com/githubnemo/CompileDaemon)\n```bash\nCompileDaemon -command=\"./go-url\" \n```\n## 📄 License\n\nMIT License. See [LICENSE](https://medium.com/@avinashvagh/github-licenses-explained-a-quick-guide-46d98ef4ca81)for details.\n## 🤝 Contributing\nPull requests welcome. If you want to add features like analytics, expiration, or QR code generation—go for it!\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajdsassi%2Fgo-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmajdsassi%2Fgo-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajdsassi%2Fgo-url/lists"}