{"id":19399068,"url":"https://github.com/poboisvert/go_shortener","last_synced_at":"2026-04-18T13:31:53.190Z","repository":{"id":180325287,"uuid":"545797253","full_name":"poboisvert/GO_shortener","owner":"poboisvert","description":"Golang using Fiver V2 and Postgres SQL to redirect an internal url to an external","archived":false,"fork":false,"pushed_at":"2022-10-17T01:05:51.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-25T06:47:22.546Z","etag":null,"topics":["go","golang","postgres","redirect","sql","url","url-shortener"],"latest_commit_sha":null,"homepage":"https://repository-images.githubusercontent.com/89461145/cd557500-21d2-11ea-8886-7030d5aaaf93","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/poboisvert.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":"2022-10-05T01:52:21.000Z","updated_at":"2024-07-07T12:34:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"d363bedb-6707-4d8e-b4b0-59c1a9179143","html_url":"https://github.com/poboisvert/GO_shortener","commit_stats":null,"previous_names":["poboisvert/go_shortener"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/poboisvert/GO_shortener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poboisvert%2FGO_shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poboisvert%2FGO_shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poboisvert%2FGO_shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poboisvert%2FGO_shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/poboisvert","download_url":"https://codeload.github.com/poboisvert/GO_shortener/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poboisvert%2FGO_shortener/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31971485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["go","golang","postgres","redirect","sql","url","url-shortener"],"created_at":"2024-11-10T11:08:04.705Z","updated_at":"2026-04-18T13:31:53.172Z","avatar_url":"https://github.com/poboisvert.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GO_shortener\n\n\n## Requirements\n\n- Docker\n- Go\n- Vs Code\n\n\n## Running the App\n\n```bash\ngit clone https://github.com/poboisvert/GO_shortener.git\n```\n\n```bash\ncd GO_shortener\n```\n\n### Database SQL\n\n```bash\ncd server \u0026\u0026 docker-compose up\n```\n\n- Make sure the SQL server is running on PORT 3000\n\n### API\n\n\n```bash\ngo mod tidy\n```\n\n\n```bash\ngo run main.go\n```\n\n## How it works\n\n- model\n    - goly.go\n        - contain the structure of the query to link go and postgres SQL under Gorm\n    - model.go\n        - store the schema to communicate with the DB\n- server\n    - crud.go\n        - contain all functions to link to an unique route\n    - server.go\n        - contain all routes to perform an event\n- utils\n    - random.go\n        - generate a random value\n\n\n## Postman\n\nurl: localhost:5000/url\n\nMethod: POST\n\nBody: RAW with JSON format\n\n```bash\n{\n    \"url_text\": \"\",\n    \"redirect\": \"https://mega.io/\",\n    \"random\": true\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoboisvert%2Fgo_shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoboisvert%2Fgo_shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoboisvert%2Fgo_shortener/lists"}