{"id":25907968,"url":"https://github.com/kumaranhk/urlshortner","last_synced_at":"2026-04-02T01:02:52.871Z","repository":{"id":280283421,"uuid":"941504647","full_name":"kumaranhk/urlShortner","owner":"kumaranhk","description":"A simple URL Shortener application built with React, Material-UI, Axios, Node js, ExpressJS, MongoDB. Users can shorten URLs, copy them, and manage their links with ease. ","archived":false,"fork":false,"pushed_at":"2025-03-03T05:38:18.000Z","size":294,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T14:32:52.472Z","etag":null,"topics":["axios","expressjs","mongodb","mongoose","mui","nodejs","passportjs","reactjs","rest-api"],"latest_commit_sha":null,"homepage":"https://tiny-gaufre-1f5cce.netlify.app/","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/kumaranhk.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,"zenodo":null}},"created_at":"2025-03-02T13:05:18.000Z","updated_at":"2025-03-03T05:46:31.000Z","dependencies_parsed_at":"2025-07-27T11:31:58.452Z","dependency_job_id":"1541eb66-a9b7-4af9-a422-67ac74110340","html_url":"https://github.com/kumaranhk/urlShortner","commit_stats":null,"previous_names":["kumaranhk/urlshortner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kumaranhk/urlShortner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kumaranhk%2FurlShortner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kumaranhk%2FurlShortner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kumaranhk%2FurlShortner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kumaranhk%2FurlShortner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kumaranhk","download_url":"https://codeload.github.com/kumaranhk/urlShortner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kumaranhk%2FurlShortner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: 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":["axios","expressjs","mongodb","mongoose","mui","nodejs","passportjs","reactjs","rest-api"],"created_at":"2025-03-03T07:15:59.394Z","updated_at":"2026-04-02T01:02:52.712Z","avatar_url":"https://github.com/kumaranhk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URL Shortener\n\nThis is a full-stack URL Shortener application built using the MERN (MongoDB, Express.js, React, Node.js) stack. It allows users to shorten long URLs, manage their shortened links, and authenticate using Google SSO.\n\n## Features\n\n- Shorten long URLs\n- Redirect to original URL using the shortened version\n- Copy shortened URLs to clipboard\n- Google Sign-In for authentication\n- View and delete previously shortened URLs\n\n## Screenshots\n\n### Login Page\n![Login Page](./screenshots/image.png)\n\n### Home Page\n![Home Page](./screenshots/image2.png)\n\n## Technologies Used\n\n### Frontend\n- React\n- Material-UI\n- React Router\n- Axios\n\n### Backend\n- Node.js\n- Express.js\n- MongoDB \u0026 Mongoose\n- Passport.js (Google OAuth)\n- Cors \u0026 Cookie-Session\n\n## Setup\n\n### Prerequisites\n- Node.js \u0026 npm\n- MongoDB (local or cloud)\n\n### Installation\n\n#### 1. Clone the repository\n```sh\ngit clone https://github.com/kumaranhk/urlShortner.git\n```\n\n#### 2. Backend Setup\n```sh\ncd url-shortener/server\nnpm install\n```\n\nCreate a `.env` file in the `backend` directory:\n```sh\ntouch .env\nnano .env\n```\nAdd the following variables:\n```env\n    GOOGLE_CLIENT_ID=your_google_client_id\n    GOOGLE_CLIENT_SECRET=your_google_client_secret\n    SESSION_SECRET=your_session_secret\n    FRONTEND_URL=your_frontend_url\n    GOOGLE_CALLBACK_URL=your_google_callback_url\n    PORT=4000\n    SERVER_URL=backend_url\n    NODE_ENV=production || dev\n    MONGOOSE_URI=mongodb://127.0.0.1:27017/your_db_name\n```\n\nStart the backend server:\n```sh\nnpm start\n```\n\n#### 3. Frontend Setup\n```sh\ncd ../client\nnpm install\n```\n\nCreate a `.env` file in the `frontend` directory:\n```sh\ntouch .env\nnano .env\n```\nAdd the following:\n```env\nVITE_BACKEND_URL=http://localhost:4000\n```\n\nStart the frontend server:\n```sh\nnpm run dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkumaranhk%2Furlshortner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkumaranhk%2Furlshortner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkumaranhk%2Furlshortner/lists"}