{"id":20811223,"url":"https://github.com/shirokovnv/url_shortener","last_synced_at":"2026-08-03T00:31:16.485Z","repository":{"id":103423465,"uuid":"527001824","full_name":"shirokovnv/url_shortener","owner":"shirokovnv","description":"URL Shortener app written in elixir.","archived":false,"fork":false,"pushed_at":"2023-01-14T14:00:59.000Z","size":61,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T11:35:23.530Z","etag":null,"topics":["elixir","phoenix-framework","url-shortener"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/shirokovnv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-08-20T17:58:59.000Z","updated_at":"2023-12-18T12:53:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"93b08aba-39ae-4262-8222-42eff3d2e803","html_url":"https://github.com/shirokovnv/url_shortener","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shirokovnv/url_shortener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shirokovnv%2Furl_shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shirokovnv%2Furl_shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shirokovnv%2Furl_shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shirokovnv%2Furl_shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shirokovnv","download_url":"https://codeload.github.com/shirokovnv/url_shortener/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shirokovnv%2Furl_shortener/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003711,"owners_count":26083610,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"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":["elixir","phoenix-framework","url-shortener"],"created_at":"2024-11-17T20:38:06.043Z","updated_at":"2025-10-10T11:35:24.104Z","avatar_url":"https://github.com/shirokovnv.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UrlShortener\n\n![ci.yml][link-ci]\n\n**Oh, no! Another URL shortener app.**\n\n## Dependencies\n\n* [Docker][link-docker]\n* [Make][link-make]\n* [Phoenix framework][link-phx]\n* [PostgreSQL][link-pgsql]\n\n## Project setup\n\n**From the project root, inside shell, run:**\n\n- `make pull` to pull latest images\n- `make init` to install fresh dependencies\n- `make up` to run app containers\n\nNow you can visit [`localhost:4000`](http://localhost:4000) from your browser.\n\n* `make down` - to extinguish running containers\n* `make help` - for additional commands\n\n## Howitworks\n\n**There are two API methods:**\n\n_Shorten a long URL_ by getting an incremental counter and converting it to base62 format.\n\n   ```\n   curl --location --request POST 'http://localhost:4000/' \\\n   --header 'Accept: application/json' \\\n   --header 'Content-Type: application/json' \\\n   --data-raw '{\n       \"long_url\": \"https://example.com\"\n     }'\n   ```\n   \n   **It responds with:**\n   \n   ```\n   {\n     \"short_url\": \"http://localhost:4000/2bU\"\n   }\n   ```\n\n_Reading short URL_ and redirecting to the matched long URL.\n\n   **Just follow the link builded from the previous step:**\n\n   ```\n   curl --location --request GET 'http://localhost:4000/2bU'\n   ```\n\n   **You will be redirected to the previously stored long URL**.\n\n## Benchmarks\n\nRun `make bench` for benchmarking tests.\n\n### Thats literally it. Good job :)\n\n## License\n\nMIT. Please see the [license file](LICENSE.md) for more information.\n\n[link-ci]: https://github.com/shirokovnv/url_shortener/actions/workflows/ci.yml/badge.svg\n[link-phx]: https://www.phoenixframework.org/\n[link-pgsql]: https://www.postgresql.org/\n[link-docker]: https://www.docker.com/\n[link-make]: https://www.gnu.org/software/make/manual/make.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshirokovnv%2Furl_shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshirokovnv%2Furl_shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshirokovnv%2Furl_shortener/lists"}