{"id":27455570,"url":"https://github.com/mirzomumin/flask_app","last_synced_at":"2026-04-09T11:33:20.687Z","repository":{"id":285653702,"uuid":"958885332","full_name":"mirzomumin/flask_app","owner":"mirzomumin","description":"Flask + Redis","archived":false,"fork":false,"pushed_at":"2025-04-01T23:43:32.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T00:28:11.796Z","etag":null,"topics":["docker","docker-compose","flask","redis"],"latest_commit_sha":null,"homepage":"","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/mirzomumin.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":"2025-04-01T23:28:21.000Z","updated_at":"2025-04-01T23:43:36.000Z","dependencies_parsed_at":"2025-04-02T00:28:23.220Z","dependency_job_id":"93bc5fae-fb25-46e1-a6b8-6fbd487c666c","html_url":"https://github.com/mirzomumin/flask_app","commit_stats":null,"previous_names":["mirzomumin/flask_app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirzomumin%2Fflask_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirzomumin%2Fflask_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirzomumin%2Fflask_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirzomumin%2Fflask_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirzomumin","download_url":"https://codeload.github.com/mirzomumin/flask_app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249110820,"owners_count":21214406,"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":["docker","docker-compose","flask","redis"],"created_at":"2025-04-15T16:44:07.841Z","updated_at":"2025-12-30T23:05:03.095Z","avatar_url":"https://github.com/mirzomumin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mini Flask App\n\nThe Flask app with Redis - caching service and containerization with Docker\n\n## Structure\n\n```shell\nflask_app/\n│── .dockerignore       # List of Docker ignore folders/files\n│── .env-example        # Environment variables example\n│── .gitignore          # List of git ignore folders/files\n│── app.py              # Flask entry point\n│── configs.py          # Project configs\n│── Dockerfile          # Source code of container image\n│── docker-compose.yaml # Config for multi-container setup\n│── gunicorn.conf.py    # Gunicorn server configs\n│── requirements.txt    # Dependencies\n│── README.md           # Documentation\n```\n\n## Set Up\n\n1. Clone the project repository\n\n```shell\ngit clone git@github.com:mirzomumin/flask_app.git\n```\n\n2. Move to the project directory\n\n```shell\ncd flask_app\n```\n\n3. Create `.env` file and copy the content of `.env-example` file into it with default parameters.\n\n```shell\ncp .env-example .env\n```\nYou can change `.env` file parameters value at any time as you wish.\n\n## Launch project\n\n1. Launch the app with Docker\n\n```shell\ndocker compose up --build -d\n```\n\n## API Endpoints\n\n1. GET /ping → Check flask app liveness\n\nRequest\n```shell\ncurl -X 'GET' \\\n  'http://127.0.0.1:5000/ping' \\\n  -H 'accept: application/json' \\\n  -H 'Content-Type: application/json'\n```\n\nResponse\n```shell\n{\"status\":\"ok\"}\n```\n\n2. GET /count → Return visit count\n\nRequest\n```shell\ncurl -X 'GET' \\\n  'http://127.0.0.1:5000/count' \\\n  -H 'accept: application/json' \\\n  -H 'Content-Type: application/json'\n```\n\nResponse\n```shell\n{\"visit_count\": 12}\n```\n\n## Stop project\n1. Stop and remove containers, networks\n\n```shell\ndocker compose down\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirzomumin%2Fflask_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirzomumin%2Fflask_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirzomumin%2Fflask_app/lists"}