{"id":26296121,"url":"https://github.com/rohancyberops/url-shortener","last_synced_at":"2025-03-15T04:17:02.267Z","repository":{"id":277696234,"uuid":"933231444","full_name":"RohanCyberOps/URL-shortener","owner":"RohanCyberOps","description":"A simple yet powerful URL shortener built with Go (Golang) and BoltDB, featuring a modern Bootstrap UI for easy interaction.","archived":false,"fork":false,"pushed_at":"2025-02-15T13:35:38.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T19:51:30.698Z","etag":null,"topics":["boltdb","bootstrap","css","go","golang","html","url-shortener"],"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/RohanCyberOps.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-15T13:24:28.000Z","updated_at":"2025-02-25T15:11:57.000Z","dependencies_parsed_at":"2025-02-15T14:26:52.572Z","dependency_job_id":null,"html_url":"https://github.com/RohanCyberOps/URL-shortener","commit_stats":null,"previous_names":["rohancyberops/url-shortener"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2FURL-shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2FURL-shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2FURL-shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2FURL-shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RohanCyberOps","download_url":"https://codeload.github.com/RohanCyberOps/URL-shortener/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681043,"owners_count":20330155,"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":["boltdb","bootstrap","css","go","golang","html","url-shortener"],"created_at":"2025-03-15T04:17:01.597Z","updated_at":"2025-03-15T04:17:02.256Z","avatar_url":"https://github.com/RohanCyberOps.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n## 🌍 **Go URL Shortener**  \nA simple yet powerful **URL shortener** built with **Go (Golang)** and **BoltDB**, featuring a **modern Bootstrap UI** for easy interaction.  \n\n![URL Shortener](url.png)   \n\n---\n\n### 🔥 **Features**  \n✅ **Shorten long URLs** in seconds  \n✅ **Custom short links** (optional)  \n✅ **Expiration time** for short links  \n✅ **Click tracking \u0026 analytics**  \n✅ **Fast \u0026 lightweight** (Uses BoltDB – no SQL required)  \n✅ **Modern UI** (Bootstrap-powered)  \n\n---\n\n### 🚀 **Tech Stack**  \n- **Go (Golang)** 🐹  \n- **BoltDB** (Embedded key-value store) 🔐  \n- **Bootstrap 5** (Responsive UI) 🎨  \n- **Net/HTTP** (Standard library for routing)  \n\n---\n\n### 📂 **Project Structure**  \n```\n📁 URL-Shortener/\n│── 📄 main.go          # Backend logic (shortening, redirecting)\n│── 📄 go.mod           # Go module dependencies\n│── 📁 static/          # Frontend files (HTML, CSS, JS)\n│   ├── 📄 index.html   # Homepage UI\n│   ├── 📄 styles.css   # Custom styles\n│── 📄 urls.db          # Database file (created at runtime)\n```\n\n---\n\n### 🛠 **Installation \u0026 Setup**  \n#### 1️⃣ **Clone the Repository**  \n```bash\ngit clone https://github.com/RohanCyberOps/URL-Shortener.git\ncd URL-Shortener\n```\n\n#### 2️⃣ **Install Dependencies**  \nEnsure you have **Go 1.24+** installed.  \n```bash\ngo mod tidy\n```\n\n#### 3️⃣ **Run the Server**  \n```bash\ngo run main.go\n```\n🚀 Now, visit **[http://localhost:8080](http://localhost:8080)** in your browser!  \n\n---\n\n### ⚡ **Usage**  \n#### 🔗 **Shorten a URL**  \n1️⃣ Enter a long URL in the input box.  \n2️⃣ (Optional) Provide a **custom short key** or leave it blank for auto-generation.  \n3️⃣ Click **Shorten** and get your **short URL**!  \n\n#### 🔄 **Redirecting**  \n- Access your **shortened link** (e.g., `http://localhost:8080/abc123`).  \n- It will **automatically redirect** to the original long URL.  \n\n#### 📊 **Track Clicks \u0026 Expiry**  \n- Click tracking is **automatically updated** in the database.  \n- Expired links **will not be accessible**.  \n\n---\n\n### 🎯 **To-Do / Future Enhancements**  \n🔹 Add **QR code** generation  \n🔹 Implement a **user dashboard** for link management  \n🔹 Deploy to **Vercel / Render / DigitalOcean**  \n\n---\n\n### 📜 **License**  \nThis project is **open-source** and available under the **MIT License**.  \n\n---\n\n### 💡 **Contributing**  \n👨‍💻 Pull requests are welcome! Feel free to **fork** this repository and enhance it.  \n\n---\n\n📧 **Need Help?** Contact me via [GitHub](https://github.com/RohanCyberOps). 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohancyberops%2Furl-shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohancyberops%2Furl-shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohancyberops%2Furl-shortener/lists"}