{"id":19380692,"url":"https://github.com/drex44/url-shortener-microservice","last_synced_at":"2025-04-23T19:33:45.025Z","repository":{"id":217465018,"uuid":"144360312","full_name":"drex44/URL-Shortener-Microservice","owner":"drex44","description":"API Project: URL Shortener Microservice for freeCodeCamp","archived":false,"fork":false,"pushed_at":"2019-04-16T11:02:17.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T19:46:34.370Z","etag":null,"topics":["expressjs","freecodecamp-project","mongodb","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/drex44.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}},"created_at":"2018-08-11T06:09:52.000Z","updated_at":"2018-08-12T13:55:34.000Z","dependencies_parsed_at":"2024-01-16T16:50:13.988Z","dependency_job_id":"d610beac-470b-42b6-952d-da5d31cccc8e","html_url":"https://github.com/drex44/URL-Shortener-Microservice","commit_stats":null,"previous_names":["drex44/url-shortener-microservice"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drex44%2FURL-Shortener-Microservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drex44%2FURL-Shortener-Microservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drex44%2FURL-Shortener-Microservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drex44%2FURL-Shortener-Microservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drex44","download_url":"https://codeload.github.com/drex44/URL-Shortener-Microservice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250499942,"owners_count":21440719,"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":["expressjs","freecodecamp-project","mongodb","nodejs"],"created_at":"2024-11-10T09:14:35.038Z","updated_at":"2025-04-23T19:33:44.683Z","avatar_url":"https://github.com/drex44.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Project: URL Shortener Microservice for freeCodeCamp\n\n### User Stories\n\n1. I can POST a URL to `[project_url]/api/shorturl/new` and I will receive a shortened URL in the JSON response. Example : `{\"original_url\":\"www.google.com\",\"short_url\":1}`\n2. If I pass an invalid URL that doesn't follow the valid `http(s)://www.example.com(/more/routes)` format, the JSON response will contain an error like `{\"error\":\"invalid URL\"}`. _HINT_: to be sure that the submitted url points to a valid site you can use the function `dns.lookup(host, cb)` from the `dns` core module.\n3. When I visit the shortened URL, it will redirect me to my original link.\n\n#### Creation Example:\n\nPOST [project_url]/api/shorturl/new - body (urlencoded) : url=https://www.google.com\n\n#### Usage:\n\n[this_project_url]/api/shorturl/xarLd\n\ni.e. https://polar-flare.glitch.me/api/shorturl/xarLd\n\n#### Will redirect to:\n\nhttp://www.freecodecamp.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrex44%2Furl-shortener-microservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrex44%2Furl-shortener-microservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrex44%2Furl-shortener-microservice/lists"}