{"id":20127783,"url":"https://github.com/codewithbharat/linky","last_synced_at":"2025-09-08T18:36:34.829Z","repository":{"id":212862330,"uuid":"732466856","full_name":"codewithbharat/linky","owner":"codewithbharat","description":"Url Shortner based on MERN Stack","archived":false,"fork":false,"pushed_at":"2023-12-18T09:51:21.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-01T10:53:51.308Z","etag":null,"topics":["expressjs","javascript","mern-stack","react","tailwindcss","url-shortener"],"latest_commit_sha":null,"homepage":"https://linky-orcin.vercel.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/codewithbharat.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":"2023-12-16T19:10:47.000Z","updated_at":"2023-12-18T20:32:16.000Z","dependencies_parsed_at":"2024-11-13T20:29:37.561Z","dependency_job_id":"d722cb89-b853-4268-b3ff-b159d5a6ee06","html_url":"https://github.com/codewithbharat/linky","commit_stats":null,"previous_names":["codewithbharat/linky"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codewithbharat/linky","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithbharat%2Flinky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithbharat%2Flinky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithbharat%2Flinky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithbharat%2Flinky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewithbharat","download_url":"https://codeload.github.com/codewithbharat/linky/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithbharat%2Flinky/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274229374,"owners_count":25245188,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["expressjs","javascript","mern-stack","react","tailwindcss","url-shortener"],"created_at":"2024-11-13T20:23:47.913Z","updated_at":"2025-09-08T18:36:34.784Z","avatar_url":"https://github.com/codewithbharat.png","language":"JavaScript","readme":"# URL Shortener with MERN Stack\n\nThis repository contains a simple URL shortener application built using the MERN stack. The project is divided into two main folders: `client` for the Vite React app and `server` for the Express.js backend.\n\n## Live Demo\n\nCheck out the live demo of the URL shortener app at [linky-orcin.vercel.app](https://linky-orcin.vercel.app).\n\n## Client\n\n### Dependencies\n\n- **axios** (version 1.6.2): A promise-based HTTP client for the browser and Node.js.\n- **react** (version 18.2.0): A JavaScript library for building user interfaces.\n- **react-dom** (version 18.2.0): Entry point for working with the DOM in React applications.\n- **react-router-dom** (version 6.21.0): Declarative routing for React.js.\n\n### Getting Started\n\n1. Navigate to the `client` folder.\n2. Install dependencies by running:\n\n   ```bash\n   npm install\n   ```\n\n3. Start the development server:\n\n   ```bash\n   npm run dev\n   ```\n\n4. Open your browser and visit [http://localhost:3000](http://localhost:3000).\n\n### Usage\n\n- The main page (`/`) provides a form to shorten URLs.\n- Shortened URLs are displayed on the page with their corresponding original URLs.\n- Clicking on a shortened URL redirects to the original URL.\n\n## Server\n\n### Dependencies\n\n- **cors** (version 2.8.5): Middleware for handling Cross-Origin Resource Sharing (CORS).\n- **dotenv** (version 16.3.1): Loads environment variables from a `.env` file.\n- **express** (version 4.18.2): Fast, unopinionated, minimalist web framework for Node.js.\n- **mongoose** (version 8.0.3): MongoDB object modeling for Node.js.\n- **shortid** (version 2.2.16): Library for creating unique, short IDs.\n- **valid-url** (version 1.0.9): Library for URL validation.\n\n### Getting Started\n\n1. Navigate to the `server` folder.\n2. Create a `.env` file based on the provided `.env.example` and set the required variables.\n3. Install dependencies by running:\n\n   ```bash\n   npm install\n   ```\n\n4. Start the server:\n\n   ```bash\n   npm start\n   ```\n\n### API Routes\n\n- **POST /shorten**: Shortens a provided URL.\n- **GET /:hash**: Redirects to the original URL associated with the given hash.\n\n## Contributing\n\nFeel free to contribute to this project by submitting issues or pull requests.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithbharat%2Flinky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithbharat%2Flinky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithbharat%2Flinky/lists"}