{"id":19541494,"url":"https://github.com/genesisblock3301/url_shortner_golang","last_synced_at":"2026-07-01T05:31:15.921Z","repository":{"id":117979686,"uuid":"572029621","full_name":"GenesisBlock3301/url_shortner_golang","owner":"GenesisBlock3301","description":"This is golang based url shortend api","archived":false,"fork":false,"pushed_at":"2022-12-08T16:52:06.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-21T21:37:06.354Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GenesisBlock3301.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":"2022-11-29T12:08:27.000Z","updated_at":"2022-12-05T14:08:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"84fb0f2a-476b-4d0d-b86c-593fea6784a2","html_url":"https://github.com/GenesisBlock3301/url_shortner_golang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GenesisBlock3301/url_shortner_golang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Furl_shortner_golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Furl_shortner_golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Furl_shortner_golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Furl_shortner_golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GenesisBlock3301","download_url":"https://codeload.github.com/GenesisBlock3301/url_shortner_golang/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Furl_shortner_golang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34994875,"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-01T02:00:05.325Z","response_time":130,"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":"2024-11-11T03:10:53.571Z","updated_at":"2026-07-01T05:31:15.614Z","avatar_url":"https://github.com/GenesisBlock3301.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URL shortener #\n\nURL shortener is a third-party website that converts that long URL to a short, case-sensitive alphanumeric code..\n\n\n## Installation ##\n\nURLshortener is compatible with modern Go releases in module mode, with Go installed:\nInstall all package by using `go get \u003cgit path\u003e`\n```bash \"github.com/gin-gonic/gin\"\n\t\"github.com/joho/godotenv\"\n\t\"log\"\n\t\"net/http\"\n\t\"go.mongodb.org/mongo-driver/bson\"\n\t\"hash/fnv\"\n\t\"net/url\"\n\t\"os\"\n```\n\n### Project Layout\n\n```tree\n├── config\n│   ├── db\n│   │   └── database-config.go\n|   |   └── loader.go\n│   ├── helper\n│   │   └── GetDB.go\n├── controllers\n│   └── urls.go\n├── logger\n│   └── log.go\n├── model\n│   └── url.go\n├── router\n│   └── route-router.go\n├── main.go\n├── .gitignore\n├── README.md\n```\n## Run project:\n```bash\ngo run main.go\n```\n\n## End points ##\n\n```bash\nlocalhost:8000/create/\n```\nRequest body\n```json\n{\n\t\"longUrl\": \"https://github.com/GenesisBlock3301/full_featured_golang_app\"\n}\n```\nRedirect to target url using short url\n```bash\nlocalhost:8000/\u003curl_token\u003e\n```\n\n## Learning Scope ##\n1. Url shortener.\n2. how to work 301 \u0026 302 url redirect work.\n3. Base64 \n4. How to work hash\n\n\n## License ##\n\nThis library is distributed under the BSD-style license found in the [LICENSE](./LICENSE)\nfile.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenesisblock3301%2Furl_shortner_golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenesisblock3301%2Furl_shortner_golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenesisblock3301%2Furl_shortner_golang/lists"}