{"id":22478281,"url":"https://github.com/404-geek/url-shortner","last_synced_at":"2025-03-27T18:15:52.516Z","repository":{"id":227777434,"uuid":"276879388","full_name":"404-geek/URL-Shortner","owner":"404-geek","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-03T16:15:45.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T21:13:46.417Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/404-geek.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}},"created_at":"2020-07-03T11:03:50.000Z","updated_at":"2020-07-03T16:17:36.000Z","dependencies_parsed_at":"2024-03-15T04:54:17.201Z","dependency_job_id":"ee62695e-9844-4134-b498-a000c2309cdb","html_url":"https://github.com/404-geek/URL-Shortner","commit_stats":null,"previous_names":["404-geek/url-shortner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/404-geek%2FURL-Shortner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/404-geek%2FURL-Shortner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/404-geek%2FURL-Shortner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/404-geek%2FURL-Shortner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/404-geek","download_url":"https://codeload.github.com/404-geek/URL-Shortner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245898334,"owners_count":20690465,"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-06T14:23:45.658Z","updated_at":"2025-03-27T18:15:52.471Z","avatar_url":"https://github.com/404-geek.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URL-Shortening API Service (Simple) \n\n## Prerequisites\n\n- Install Redis server ([Redis Installation in Linux](https://redis.io/topics/quickstart))\n\n## Setup\n\n- Create a Virtual Environment `virtualenv -p python3 venv`\n- Install the requirements `pip install -r requirements.txt`\n- Run the app with `python shorten.py`\n\n## Services\n- [Shorten the URLs](http://127.0.0.1:5000/shorten) [POST]\n    \n    \u003e `url` is to be provided in the form-data\n                                                             \n-  [Stats Info](http://127.0.0.1:5000/info/\u003curl-id\u003e) [POST] [GET]\n    \n    \u003e`url id` is to be appended in the url\n\n## Run in Production\n\n- Install Docker Engine ([Docker Installation in Debian](https://docs.docker.com/engine/install/debian/))\n- Build Docker image of the app `docker build -t urlservice .` in the project directory.\n- Run the application `docker run -d -p 5000:5000 urlservice`                                                                           \n                                                                          \n## Features that can be included\n\n- Web Platform for these APIs.\n- URL privacy can be implemented by saving user data and specific origins.\n- More stats can be populated for tracking.\n- Open API specs to generate stubs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F404-geek%2Furl-shortner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F404-geek%2Furl-shortner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F404-geek%2Furl-shortner/lists"}