{"id":13647334,"url":"https://github.com/xemeds/tiny0","last_synced_at":"2025-04-22T02:31:18.673Z","repository":{"id":217095360,"uuid":"280629366","full_name":"xemeds/tiny0","owner":"xemeds","description":"Custom URL shortener in Flask.","archived":false,"fork":false,"pushed_at":"2023-05-01T21:44:10.000Z","size":108,"stargazers_count":57,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-09T21:36:39.717Z","etag":null,"topics":["flask","python","url-shortener"],"latest_commit_sha":null,"homepage":"","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/xemeds.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}},"created_at":"2020-07-18T10:04:13.000Z","updated_at":"2024-05-22T12:34:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"97b4afc1-4418-42d4-ac95-6cacdfc96b92","html_url":"https://github.com/xemeds/tiny0","commit_stats":null,"previous_names":["xemeds/tiny0"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xemeds%2Ftiny0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xemeds%2Ftiny0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xemeds%2Ftiny0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xemeds%2Ftiny0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xemeds","download_url":"https://codeload.github.com/xemeds/tiny0/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250163632,"owners_count":21385275,"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":["flask","python","url-shortener"],"created_at":"2024-08-02T01:03:29.913Z","updated_at":"2025-04-22T02:31:18.288Z","avatar_url":"https://github.com/xemeds.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# How it works\n\nEach URL that is submitted goes through a simple check for validity and/or added http:// before it to redirect successful.\nAfter that, a base 64 string is generated and added to a SQLite database with the corresponding URL that was submitted.\nThe user is then given a short URL that is formatted as: WEBSITE_DOMAIN/token, the token being the base 64 string.\nWhenever this URL is visited the user will get redirected to the tokens corresponding URL in the database.\n\n# Run locally\n\n**Highly encouraged to create a python environment first.**\n\nClone the repository:\n\n\t$ git clone https://github.com/xemeds/tiny0.git\n\nMove into the cloned folder and install the required libraries:\n\n\t$ cd tiny0\n\t$ pip install -r requirements.txt\n\nAfter that run with:\n\n\t$ python run.py\n\nVisit the below URL to view the flask app:\n\n\t127.0.0.1:5000\n\n**NOTE:** When running locally all redirects will also be local.\n\n# Deploying\n\nIf you do not have a dedicated server, I highly recommend using [Linode](https://www.linode.com/), [Heroku](https://www.heroku.com/) or [PythonAnywhere](https://www.pythonanywhere.com/) to host your application.\n\nBefore deploying, make sure to set the following environment variables:\n\n\t$ export WEBSITE_DOMAIN=\n\t$ export SECRET_KEY=\n\t$ export DEBUG=\n\t$ export SQLALCHEMY_DATABASE_URI=\n\nIf not they will default to the following values:\n\n\tWEBSITE_DOMAIN=127.0.0.1:5000\n\tSECRET_KEY=SECRET_KEY\n\tDEBUG=true\n\tSQLALCHEMY_DATABASE_URI=sqlite:///database.db\n\n# License\n\nThis project is under the [MIT](https://github.com/xemeds/tiny0/blob/master/LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxemeds%2Ftiny0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxemeds%2Ftiny0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxemeds%2Ftiny0/lists"}