{"id":20078736,"url":"https://github.com/wpdas/shortner-microservice","last_synced_at":"2026-05-08T12:50:09.923Z","repository":{"id":77498463,"uuid":"186962661","full_name":"wpdas/shortner-microservice","owner":"wpdas","description":"freeCodeCamp: APIs and Microservices Projects - URL Shortener Microservice (Node + Express + MongoDB)","archived":false,"fork":false,"pushed_at":"2019-05-16T06:16:24.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T01:11:48.089Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://shortner-microservice-wpdas.glitch.me/","language":"JavaScript","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/wpdas.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":"2019-05-16T06:10:08.000Z","updated_at":"2019-05-16T06:25:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"8cd30798-ad8d-4ff8-bdef-87ad57110fe4","html_url":"https://github.com/wpdas/shortner-microservice","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpdas%2Fshortner-microservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpdas%2Fshortner-microservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpdas%2Fshortner-microservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpdas%2Fshortner-microservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpdas","download_url":"https://codeload.github.com/wpdas/shortner-microservice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241509658,"owners_count":19974071,"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-13T15:16:23.932Z","updated_at":"2025-11-27T12:05:43.188Z","avatar_url":"https://github.com/wpdas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Project: URL Shortener Microservice for freeCodeCamp\n\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\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/3\n\n#### Will redirect to:\n\nhttps://www.freecodecamp.org/forum/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpdas%2Fshortner-microservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpdas%2Fshortner-microservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpdas%2Fshortner-microservice/lists"}