{"id":23557417,"url":"https://github.com/codetoby/url-shortener","last_synced_at":"2025-05-15T23:30:52.343Z","repository":{"id":198302445,"uuid":"665280401","full_name":"codetoby/URL-Shortener","owner":"codetoby","description":"Short URL","archived":false,"fork":false,"pushed_at":"2023-10-05T09:07:18.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T14:45:24.337Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/codetoby.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-07-11T21:15:22.000Z","updated_at":"2023-10-04T15:51:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"805c04c8-5e0e-4395-848f-0f986e9451a8","html_url":"https://github.com/codetoby/URL-Shortener","commit_stats":null,"previous_names":["codetoby/url-shortener"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codetoby%2FURL-Shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codetoby%2FURL-Shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codetoby%2FURL-Shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codetoby%2FURL-Shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codetoby","download_url":"https://codeload.github.com/codetoby/URL-Shortener/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254442183,"owners_count":22071860,"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":[],"created_at":"2024-12-26T14:29:34.396Z","updated_at":"2025-05-15T23:30:52.303Z","avatar_url":"https://github.com/codetoby.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URL Shortener \n\nA simple and efficient URL shortener service that allows users to convert long URLs into short and shareable links.\n\n## API Endpoints\n\n- **Shorten a URL**:\n  - **Endpoint**: `POST /`\n  - **Body**: `{ \"url\": \"YOUR_LONG_URL_HERE\" }`\n  - **Response**: `{ \"id\": \"SHORT_ID\" }`\n\n- **Redirect to Original URL**:\n  - **Endpoint**: `GET /:shortId`\n  - **Response**: Redirects to the original long URL.\n\n**Database Configuration**:\n- Create a `.env` file in the root directory.\n- Configure the database settings in the `.env` file. Example: `.env.example`\n\n**Run**:\n- Make sure to have docker installed\n- ```docker-compose up```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodetoby%2Furl-shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodetoby%2Furl-shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodetoby%2Furl-shortener/lists"}