{"id":19301837,"url":"https://github.com/henrikac/fastapi-docker-tkinter","last_synced_at":"2026-04-11T02:03:11.479Z","repository":{"id":140270662,"uuid":"392053463","full_name":"henrikac/fastapi-docker-tkinter","owner":"henrikac","description":"A url shortener made with fastapi, docker and tkinter (learning purpose only).","archived":false,"fork":false,"pushed_at":"2021-08-02T18:25:27.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-24T01:43:41.498Z","etag":null,"topics":["docker","docker-compose","fastapi","python","tkinter"],"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/henrikac.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":"2021-08-02T18:25:07.000Z","updated_at":"2022-12-22T16:50:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b34e356-8b39-4c66-97e4-9a904fd23e96","html_url":"https://github.com/henrikac/fastapi-docker-tkinter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/henrikac/fastapi-docker-tkinter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrikac%2Ffastapi-docker-tkinter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrikac%2Ffastapi-docker-tkinter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrikac%2Ffastapi-docker-tkinter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrikac%2Ffastapi-docker-tkinter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henrikac","download_url":"https://codeload.github.com/henrikac/fastapi-docker-tkinter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrikac%2Ffastapi-docker-tkinter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284807785,"owners_count":27066464,"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-11-17T02:00:06.431Z","response_time":55,"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":["docker","docker-compose","fastapi","python","tkinter"],"created_at":"2024-11-09T23:19:03.487Z","updated_at":"2025-11-17T02:01:36.995Z","avatar_url":"https://github.com/henrikac.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# urlshortener\n\nA url shortener.  \n\nThe purpose of this project is to learn about [FastAPI](https://fastapi.tiangolo.com/), [Docker](https://www.docker.com/) and [Docker Compose](https://docs.docker.com/compose/).\n\nIt turned out to a 2-in-1 project. It started as an API project but it ended up including a GUI made with [tkinter](https://docs.python.org/3/library/tkinter.html) that interacts with this API.  \n\n## Requirements\n+ Python 3.6+\n+ Docker\n+ Docker Compose\n\n## Usage\n\n#### Start up the api\nTo start up the api and the database run the following command\n\n`docker-compose up`\n\nor\n\n`docker-compose up -d`\n\nto run in detached mode.\n\n#### Access postgres shell (psql)\nTo access the postgres shell you need to get the id of the postgres container\n\n```terminal\n$ docker ps\nCONTAINER ID    IMAGE              ...\nb563764171e2    urlshortener_api   ...\nc6e480b0f26a    postgres           ...\n```\n\nNow run \n\n```terminal\n$ docker exec -it \u003ccontainer id\u003e sh\n\n# su - postgres\n\n$ psql\n```\n\n#### Run the GUI\nTo run the GUI simply run `python3 gui/gui/main.py`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenrikac%2Ffastapi-docker-tkinter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenrikac%2Ffastapi-docker-tkinter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenrikac%2Ffastapi-docker-tkinter/lists"}