{"id":21725201,"url":"https://github.com/surojcodes/pocketurl","last_synced_at":"2026-04-12T13:03:08.971Z","repository":{"id":42796098,"uuid":"272387198","full_name":"surojcodes/pocketurl","owner":"surojcodes","description":" A full stack Javascript URL shortening app following API first approach using Node js (Express), MongoDB (mongoose ) and axios.","archived":false,"fork":false,"pushed_at":"2022-12-13T02:00:53.000Z","size":298,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-25T19:26:28.707Z","etag":null,"topics":["api","axios","expressjs","fullstack-javascript","javascript","mongodb","mongoose","nodejs"],"latest_commit_sha":null,"homepage":"https://pocketifyurl.herokuapp.com/","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/surojcodes.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}},"created_at":"2020-06-15T08:46:40.000Z","updated_at":"2020-09-04T04:39:03.000Z","dependencies_parsed_at":"2023-01-28T04:45:12.651Z","dependency_job_id":null,"html_url":"https://github.com/surojcodes/pocketurl","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/surojcodes%2Fpocketurl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surojcodes%2Fpocketurl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surojcodes%2Fpocketurl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surojcodes%2Fpocketurl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/surojcodes","download_url":"https://codeload.github.com/surojcodes/pocketurl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244706520,"owners_count":20496570,"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":["api","axios","expressjs","fullstack-javascript","javascript","mongodb","mongoose","nodejs"],"created_at":"2024-11-26T03:16:28.604Z","updated_at":"2026-04-12T13:03:08.859Z","avatar_url":"https://github.com/surojcodes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pocket URL\n\u003e A full stack Javascript URL shortening app using API first approach. \n\u003e API made using Node.js (Express) and MongoDB (mongoose) and frontend using axios\n\n## Usage\nRename config/config.env.env to config/config.env and update the settings values of your own\n\n## Install Dependencies\n```\nnpm install\n```\n\n## Run App\n```\n# In development mode\nnpm run dev\n\n#In production mode\nnpm start\n```\n##End points\nTo shorten the URL\n```\nRequest-Type: POST\nROUTE: http://yourdomain.com/\nHeaders: {\n    Content-Type:application/json\n}\nBody: {\n    \"longUrl\":\"URL to shorten\"\n}\n```\nThis gives you a url object with the short code\n\n```\n    {\n    \"success\": true,\n    \"data\": {\n        \"_id\": \"5ee7352f97f6de10e9bee7e8\",\n        \"longUrl\": \"submitted long URL\",\n        \"shortUrl\": \"http://yourdomain.com/ANXD_u8Bf\",\n        \"code\": \"ANXD_u8Bf\",\n        \"createdAt\": \"1592210735285\",\n        \"__v\": 0\n    }\n}\n```\nAs seen, send a GET request to \"shortURl\" to be redirected to the original page.\n\n***\n## Features\n* Paste the long URL that you want to shorten\n* Get the short URL\n* Use the short URL to access original page\n\n## FrontEnd\nFront end for the API has been coded in ES6+ Javascript using axios for communicating with API\n\n#### Security Features\n* NoSQL injection secure\n* Security headers has been added\n* Cross-site scripting(XSS) secure\n* Cross-Origin Resource Sharing (CORS) enabled\n* HTTP Param Pollution prevented\n\n***\n## Demo\n![alt tag](https://surojmaharjan0.github.io/projectimages/images/pocketurl.PNG)\n\nThis app is live [here](https://pocketifyurl.herokuapp.com/)\n* Version **1.0**\n* Author **Suroj Maharjan**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurojcodes%2Fpocketurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsurojcodes%2Fpocketurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurojcodes%2Fpocketurl/lists"}