{"id":38671145,"url":"https://github.com/mnowotka/babyshortener","last_synced_at":"2026-01-17T09:56:52.942Z","repository":{"id":42584472,"uuid":"106111729","full_name":"mnowotka/babyshortener","owner":"mnowotka","description":"simple url shortener implemented using Flask","archived":false,"fork":false,"pushed_at":"2025-10-06T22:20:16.000Z","size":27,"stargazers_count":1,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T00:17:46.893Z","etag":null,"topics":["flask","url","url-shortener"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mnowotka.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-10-07T16:13:44.000Z","updated_at":"2019-09-20T07:36:14.000Z","dependencies_parsed_at":"2024-01-19T01:50:42.672Z","dependency_job_id":"c14c42c6-c81c-4fa6-9b55-fe9554011e44","html_url":"https://github.com/mnowotka/babyshortener","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mnowotka/babyshortener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnowotka%2Fbabyshortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnowotka%2Fbabyshortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnowotka%2Fbabyshortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnowotka%2Fbabyshortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mnowotka","download_url":"https://codeload.github.com/mnowotka/babyshortener/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnowotka%2Fbabyshortener/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28505565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"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":["flask","url","url-shortener"],"created_at":"2026-01-17T09:56:52.857Z","updated_at":"2026-01-17T09:56:52.923Z","avatar_url":"https://github.com/mnowotka.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babyshortener\nSimple URL shortener implemented using Flask\n\n[![Build Status](https://travis-ci.org/mnowotka/babyshortener.svg?branch=master)](https://travis-ci.org/mnowotka/babyshortener)\n\nPersistence layer provided by SQLAlchemy (`flask_sqlalchemy`). API Resource class provided by `flask-restful`\n\n## How to install?\n\nRun:\n\n```\ngit clone git@github.com:mnowotka/babyshortener.git\ncd babyshortener\npip install .\npip install -r requirements.txt\n```\n\nOr:\n\n```\npip install git+https://github.com/mnowotka/babyshortener.git\n```\n\n## How to test?\n\nRun:\n\n```\npython tests/test_shortener.py\n```\n\n## How to run development server?\n\nIf installed by cloning `GitHub` repo, add project root directory to `PYTHONPATH` and run:\n\n```\npython babyshortener/run_shortener.py\n```\n\nIf installed via `pip`, the `run_shortener` command should be available\n\n## How to make request using `curl`?\n\nTo shorten:\n\n```\ncurl -H \"Content-Type: application/json\" -X POST -d '{\"url\": \"www.google.com\"}' http://localhost:5000/shorten_url\n```\n\nTo redirect:\n\n```\ncurl http://localhost:5000/1VV\n```\n\n## How to configure to scale?\n\n1. Provide your own settings file and configure `SQLALCHEMY_DATABASE_URI` to point to the production database\n\n2. Deploy behind gunicorn \u0026 NGINX (https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-14-04)\n\n```\nexport BABYSHORTENER_SETTINGS=/path/to/settings.cfg\ngunicorn --bind localhost:8080 --workers 4 'babyshortener.run_shortener:main'\n\n```\n\n3. Deploy on multiple machines behind a load balancer\n\n4. Add a cache layer","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnowotka%2Fbabyshortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnowotka%2Fbabyshortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnowotka%2Fbabyshortener/lists"}