{"id":18450100,"url":"https://github.com/mathleite/tinyurl","last_synced_at":"2025-04-18T00:23:37.777Z","repository":{"id":171145566,"uuid":"647495322","full_name":"mathleite/tinyUrl","owner":"mathleite","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-30T23:52:37.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T13:44:34.500Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/mathleite.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":"2023-05-30T22:58:32.000Z","updated_at":"2023-05-30T23:52:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"57906b79-8fef-4b7a-b2e0-7b87d70db45f","html_url":"https://github.com/mathleite/tinyUrl","commit_stats":null,"previous_names":["mathleite/tinyurl"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathleite%2FtinyUrl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathleite%2FtinyUrl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathleite%2FtinyUrl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathleite%2FtinyUrl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathleite","download_url":"https://codeload.github.com/mathleite/tinyUrl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249167446,"owners_count":21223506,"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","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-06T07:23:25.316Z","updated_at":"2025-04-15T23:01:22.212Z","avatar_url":"https://github.com/mathleite.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TinyUrl\nShortener Url service is an application that receive a link and return a\n_hashed_ endpoint that you can call and get access to the original link, like:\n```text\ngiven -\u003e https://www.xpto.com/some_endpoint\nreturn -\u003e localhost:8080/a9dfa92a3e\n           |-\u003e redirects to the given endpoint\n```\n___\n\u003cdiv style=\"margin-left: auto; margin-right: auto; width: 40%\"\u003e\n\n| Technologies |\n|:------------:|\n|  Typescript  |\n|    Redis     |\n|     Jest     |\n\u003c/div\u003e\n\n\n\n## Setup\n### Docker\nRun the following command to install the application packages\nand start _tinyUrl_ service:\n```shell\n~$ docker-compose up --build\n```\n\n### Health-Check\nYou can check the application health:\n```shell\ncurl --location 'localhost:8080/health-check'\n```\n\n## Usage\n### Create a TinyUrl\nRequest: cURL\n````shell\ncurl --location 'localhost:8080/shorten' \\\n--header 'Content-Type: application/json' \\\n--data '{\n    \"url\": \"https://www.google.com.br\"\n}'\n````\nReceive: Json\n```json\n{\n    \"newUrl\": \"localhost:8080/a9dfa92a3e\"\n}\n```\n### Access TinyUrl\n\u003eHere you will receive a redirect to the original link.\n\nRequest: cURL\n```shell\ncurl --location 'localhost:8080/a9dfa92a3e'\n```\n### [WIP] Tests ~","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathleite%2Ftinyurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathleite%2Ftinyurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathleite%2Ftinyurl/lists"}