{"id":24494801,"url":"https://github.com/thisisnotjustin/goshort","last_synced_at":"2026-02-12T16:02:38.602Z","repository":{"id":269151902,"uuid":"905476614","full_name":"ThisIsNotJustin/goshort","owner":"ThisIsNotJustin","description":"URL Shortener written in Go","archived":false,"fork":false,"pushed_at":"2024-12-21T10:07:32.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-30T15:29:58.241Z","etag":null,"topics":["go","software-engineering"],"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/ThisIsNotJustin.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-12-18T22:55:19.000Z","updated_at":"2025-01-16T01:03:02.000Z","dependencies_parsed_at":"2024-12-21T10:28:57.024Z","dependency_job_id":"8c49948d-109f-47ef-b17c-12d50541a8e8","html_url":"https://github.com/ThisIsNotJustin/goshort","commit_stats":null,"previous_names":["thisisnotjustin/goshort"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ThisIsNotJustin/goshort","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIsNotJustin%2Fgoshort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIsNotJustin%2Fgoshort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIsNotJustin%2Fgoshort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIsNotJustin%2Fgoshort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThisIsNotJustin","download_url":"https://codeload.github.com/ThisIsNotJustin/goshort/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIsNotJustin%2Fgoshort/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29371410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["go","software-engineering"],"created_at":"2025-01-21T20:17:16.978Z","updated_at":"2026-02-12T16:02:38.572Z","avatar_url":"https://github.com/ThisIsNotJustin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoShort!\n\n### URL Shortener Project in Go with Redis, Go Fiber, and Docker\n\nThis project is a URL shortener built using Go, Go Fiber, Redis, and Docker for containerization. The application allows you to shorten URLs, manage them, and store URL mappings in a Redis database.\n\n## Features\n- URL shortening and redirection\n- Redis caching for fast lookups\n- RESTful API to handle URL creation, retrieval, edit, and deletion\n- Built with Go and Go Fiber for high performance\n- Dockerized for easy deployment and development\n\n## Requirements\n- [Docker](https://www.docker.com/get-started)\n- [Go](https://go.dev/dl/)\n- [Redis](https://redis.io/docs/latest/)\n- [Postman](https://www.postman.com/) for API testing\n\n## Setup Instructions\n\n### 1. Clone the repository\n```bash\ngit clone https://github.com/ThisIsNotJustin/goshort.git\n```\n\n### 2. Create a .env file in the root of project\n```bash\nDB_ADDR=\"db:6379\"          # Address for Redis container\nDB_PASS=\"\"                 # Password for Redis\nAPP_PORT=:8080             # Port to run the Go application\nDOMAIN=\"localhost:8000\"    # Domain for shortening URLs\nAPI_QUOTA=10               # Max number of URLs\n```\n\n### 3. Dockerize the application\n```bash\ndocker-compose up --build\n```\nThis will:\n- Build the Go app\n- Start Redis in a container\n- Run the Go app inside a container\n\n### 4. Test the API with Postman\nTest the API endpoints, I recommend using Postman. \n- POST to create a shortened URL from a long URL.\n\n```bash\n{\n    \"url\": \"https://www.youtube.com/watch?v=xm3YgoEiEDc\",\n    \"short\": \"\",\n    \"expiry\": 24\n}\n```\n\n- This will receive a response body consisting of\n```bash\n{\n    \"url\": \"https://www.youtube.com/watch?v=xm3YgoEiEDc\",\n    \"short\": \"localhost:8000/exampleUrl\", # random short generated when not provided\n    \"expiry\": 24, # expires in 24 hours\n    \"rate_limit\": 9, # 9 api uses remaining\n    \"rate_limit_reset\": 29 # api uses resets in 29 minutes\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisisnotjustin%2Fgoshort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisisnotjustin%2Fgoshort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisisnotjustin%2Fgoshort/lists"}