{"id":24306721,"url":"https://github.com/lalitdotdev/go-short","last_synced_at":"2026-07-19T04:33:27.568Z","repository":{"id":181232591,"uuid":"666437761","full_name":"lalitdotdev/go-short","owner":"lalitdotdev","description":"The Command Line URL Shortener is a Go and Redis-based application that allows users to generate short and shareable links for long URLs.","archived":false,"fork":false,"pushed_at":"2023-07-14T14:37:37.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T08:16:36.949Z","etag":null,"topics":[],"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/lalitdotdev.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}},"created_at":"2023-07-14T14:12:38.000Z","updated_at":"2024-01-19T07:09:51.000Z","dependencies_parsed_at":"2023-07-14T16:20:30.972Z","dependency_job_id":null,"html_url":"https://github.com/lalitdotdev/go-short","commit_stats":null,"previous_names":["mrexplorist/go-short","lalitdotdev/go-short"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lalitdotdev/go-short","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalitdotdev%2Fgo-short","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalitdotdev%2Fgo-short/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalitdotdev%2Fgo-short/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalitdotdev%2Fgo-short/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lalitdotdev","download_url":"https://codeload.github.com/lalitdotdev/go-short/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalitdotdev%2Fgo-short/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35642105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-19T02:00:06.923Z","response_time":112,"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":[],"created_at":"2025-01-17T03:39:20.089Z","updated_at":"2026-07-19T04:33:27.536Z","avatar_url":"https://github.com/lalitdotdev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URL Shortener\n\nThe URL Shortener is a Go and Redis-based application that allows users to generate short and shareable links for long URLs.\n\n## Features\n\n- Generate short URLs from long URLs\n- Redirect users to the original destination when accessing the short URL\n- Efficient storage and retrieval of URLs using Redis\n- Scalable and high-performance solution built with Go\n\n## Installation\n\nTo run the URL Shortener locally, you need to have Docker and Docker Compose installed on your system. You can find installation instructions for your operating system on the [Docker website](https://docs.docker.com/get-docker/).\n\n### Clone the Repository\n\n```\ngit clone https://github.com/your-username/go-short.git\ncd go-short\n```\n\n### Set up Redis\n\nThe URL Shortener uses Redis to store and retrieve URLs.\n\n## Usage\n\nThe URL Shortener can be easily built and run using Docker Compose. Follow these steps:\n\n1. Build and run the Docker containers:\n\n   ```\n   docker-compose up -d\n   ```\n\n   This command will build and start the URL Shortener and Redis containers in the background.\n\n2. Access the application:\n\n   ```\n   Test the application by sending a POST request to the `http://localhost/api/v1` endpoint with a long URL in the request body:\n   ```\n\n## Configuration\n\nThe URL Shortener can be configured via environment variables in the `docker-compose.yml` file. The following variables are available:\n\n- `DB_ADDR`= (default: db:6379): Redis server address\n- `DB_PASS` (default: empty): Redis server password (if required)\n- `APP_PORT` (Port on which the application will run)\n- `DOMAIN` (http://localhost:APP_PORT)\n  Make sure to set these variables according to your Redis configuration in the `docker-compose.yml` file before running the application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flalitdotdev%2Fgo-short","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flalitdotdev%2Fgo-short","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flalitdotdev%2Fgo-short/lists"}