{"id":18551045,"url":"https://github.com/fitsumhelina/codealpha_url_shortener","last_synced_at":"2026-05-05T14:03:48.721Z","repository":{"id":249370277,"uuid":"831322286","full_name":"Fitsumhelina/CodeAlpha_Url_Shortener","owner":"Fitsumhelina","description":"A URL shortener service that allows users to shorten long URLs and redirects users to the original URL when accessed. This project uses Express.js (Node.js) to handle URL redirection and MongoDB to store mappings.","archived":false,"fork":false,"pushed_at":"2024-08-20T21:47:57.000Z","size":1464,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T01:37:49.592Z","etag":null,"topics":["backend","expressjs","mern-stack","nodejs","project","url-shortener"],"latest_commit_sha":null,"homepage":"https://url-azure.vercel.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fitsumhelina.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-20T08:07:23.000Z","updated_at":"2024-08-20T21:48:00.000Z","dependencies_parsed_at":"2025-02-17T10:39:15.125Z","dependency_job_id":null,"html_url":"https://github.com/Fitsumhelina/CodeAlpha_Url_Shortener","commit_stats":null,"previous_names":["fitsumhelina/codealpha_url_shortener"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Fitsumhelina/CodeAlpha_Url_Shortener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fitsumhelina%2FCodeAlpha_Url_Shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fitsumhelina%2FCodeAlpha_Url_Shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fitsumhelina%2FCodeAlpha_Url_Shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fitsumhelina%2FCodeAlpha_Url_Shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fitsumhelina","download_url":"https://codeload.github.com/Fitsumhelina/CodeAlpha_Url_Shortener/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fitsumhelina%2FCodeAlpha_Url_Shortener/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32652490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["backend","expressjs","mern-stack","nodejs","project","url-shortener"],"created_at":"2024-11-06T21:07:18.872Z","updated_at":"2026-05-05T14:03:48.704Z","avatar_url":"https://github.com/Fitsumhelina.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n---\n\n# URL Shortener Service\n\nA URL shortener service that allows users to shorten long URLs and redirects users to the original URL when accessed. This project uses Express.js (Node.js) to handle URL redirection and MongoDB to store mappings.\n\n![Portfolio Screenshot](./public//assets//site.png) \u003c!-- Add a screenshot of your website here --\u003e\n\n\n## Features\n\n- Shorten long URLs.\n- Redirect to the original URL using the shortened link.\n- Simple frontend for inputting URLs and getting shortened links.\n- Copy button to easily copy the shortened link.\n\n## Tech Stack\n\n- **Backend:** Node.js, Express.js\n- **Database:** MongoDB\n- **Frontend:** HTML, CSS, JavaScript\n\n## Project Structure\n\n```plaintext\nurl-shortener/\n├── .env\n├── .gitignore\n├── package.json\n├── README.md\n├── server.js\n├── models/\n│   └── Url.js\n├── routes/\n│   └── url.js\n├── controllers/\n│   └── urlController.js\n├── config/\n│   └── db.js\n└── public/\n    ├── index.html\n    ├── css/\n    │   └── styles.css\n    └── js/\n        └── scripts.js\n```\n\n## Installation\n\n### Clone the repository\n\n```bash\ngit clone https://github.com/fitsumhelina/url-shortener.git\ncd url-shortener\n```\n\n### Install dependencies\n\n```bash\nnpm install\n```\n\n### Create a `.env` file and add the following variables:\n\n```env\nPORT=5000\nMONGO_URI=your_mongodb_connection_string\nBASE_URL=http://localhost:5000\n```\n\n### Run the server\n\n```bash\nnpm run dev\n```\n\n### Access the application\n\nOpen your browser and go to [http://localhost:5000](http://localhost:5000).\n\n## Usage\n\n- **Shorten a URL:** Enter a long URL in the input field and click the \"Shorten\" button.\n- **Copy the Shortened URL:** Click the \"Copy\" button to copy the shortened URL to the clipboard.\n- **Redirect to the Original URL:** Click the shortened URL to be redirected to the original long URL.\n\n## API Endpoints\n\n### Shorten URL\n\n- **URL:** `/shorten`\n- **Method:** `POST`\n- **Body:** `{\"longUrl\": \"http://example.com\"}`\n- **Response:**\n    ```json\n    {\n      \"longUrl\": \"http://example.com\",\n      \"shortUrl\": \"http://localhost:5000/abc123\",\n      \"urlCode\": \"abc123\",\n      \"date\": \"2023-07-20T14:00:00.000Z\"\n    }\n    ```\n\n### Redirect to Original URL\n\n- **URL:** `/:code`\n- **Method:** `GET`\n- **Response:** Redirects to the original long URL.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## live \n\n- check it here : https://url-azure.vercel.app/\n- disclaimer!! : currently it is not working on deployed version. \n\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.\n\n## Contact\n\n  \u003cp \u003e\n  \u003cimg src=\"./public//assets//profilepic.jpg\" alt=\"Fitsum Helina\" width=\"100\" height=\"100\"/\u003e\n  \u003c/p\u003e\n\n- **Name:** Fitsum Helina\n- **Email:** [click here](dev.fitsum@example.com)\n- **Portfolio:** [fitsumhelina.com](https://fitsumhelina.vercel.app)\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitsumhelina%2Fcodealpha_url_shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffitsumhelina%2Fcodealpha_url_shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitsumhelina%2Fcodealpha_url_shortener/lists"}