{"id":14975588,"url":"https://github.com/theinfinity007/url-shortner","last_synced_at":"2026-02-18T14:01:38.493Z","repository":{"id":244795463,"uuid":"284303838","full_name":"TheInfinity007/Url-Shortner","owner":"TheInfinity007","description":"A URL Shortner microservice project using the node.js and mongodb database. Just post a url and you will get a shorturl.","archived":false,"fork":false,"pushed_at":"2022-12-13T10:52:28.000Z","size":53,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-10T18:35:27.519Z","etag":null,"topics":["express-js","mongodb","mongoose-js","node-js"],"latest_commit_sha":null,"homepage":"https://thirsty-daffy-triceratops.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/TheInfinity007.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":"2020-08-01T17:08:47.000Z","updated_at":"2020-08-07T18:41:10.000Z","dependencies_parsed_at":"2024-06-17T14:17:15.361Z","dependency_job_id":"2a9752de-8bc3-4892-ad95-68b6f0827302","html_url":"https://github.com/TheInfinity007/Url-Shortner","commit_stats":null,"previous_names":["theinfinity007/url-shortner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheInfinity007%2FUrl-Shortner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheInfinity007%2FUrl-Shortner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheInfinity007%2FUrl-Shortner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheInfinity007%2FUrl-Shortner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheInfinity007","download_url":"https://codeload.github.com/TheInfinity007/Url-Shortner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241061922,"owners_count":19902793,"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":["express-js","mongodb","mongoose-js","node-js"],"created_at":"2024-09-24T13:52:15.032Z","updated_at":"2025-10-07T21:47:16.417Z","avatar_url":"https://github.com/TheInfinity007.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Project: URL Shortener Microservice for freeCodeCamp\n\n[![Run on Repl.it](https://repl.it/badge/github/freeCodeCamp/boilerplate-project-urlshortener)](https://repl.it/github/freeCodeCamp/boilerplate-project-urlshortener)\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/2\n\n#### Will redirect to:\n\nhttps://www.freecodecamp.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheinfinity007%2Furl-shortner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheinfinity007%2Furl-shortner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheinfinity007%2Furl-shortner/lists"}