{"id":22085293,"url":"https://github.com/raphaeltm/demo-flask","last_synced_at":"2025-03-23T21:44:39.953Z","repository":{"id":265722986,"uuid":"883307198","full_name":"raphaeltm/demo-flask","owner":"raphaeltm","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-04T18:28:22.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"pr-test/sample-repo-automation","last_synced_at":"2025-03-14T22:43:14.578Z","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/raphaeltm.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":"2024-11-04T18:28:19.000Z","updated_at":"2024-11-04T18:28:25.000Z","dependencies_parsed_at":"2024-11-30T18:05:06.919Z","dependency_job_id":"a4b9f20a-abc0-4bfb-bf81-99569c98854a","html_url":"https://github.com/raphaeltm/demo-flask","commit_stats":null,"previous_names":["raphaeltm/demo-flask"],"tags_count":0,"template":false,"template_full_name":"DefangSamples/sample-flask-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaeltm%2Fdemo-flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaeltm%2Fdemo-flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaeltm%2Fdemo-flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaeltm%2Fdemo-flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphaeltm","download_url":"https://codeload.github.com/raphaeltm/demo-flask/tar.gz/refs/heads/pr-test/sample-repo-automation","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245175358,"owners_count":20572781,"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-01T01:13:03.564Z","updated_at":"2025-03-23T21:44:39.927Z","avatar_url":"https://github.com/raphaeltm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Simple Flask App\n\nThis is a sample of a basic Flask TODO app. The items are stored in memory and are lost when the server is restarted, but it should give you a basic idea of how to get started with Flask on Defang. Note that alognside your .py file, include a requirements.txt so that the Dockerfile can install the necessary packages with pip.\n\n### NOTE:\nThis sample is a simple Flask app that demonstrates how to create a TODO app using Flask. The items are stored in memory and are lost when the server is restarted. This sample is intended to provide a basic understanding of how to get started with Flask on Defang. **it is not intended for production use**. If you need something production ready, you should use a managed database like Postgres or MySQL.\n\n## Essential Setup Files\n1. A [Dockerfile](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/).\n2. A [compose file](https://docs.defang.io/docs/concepts/compose) to define and run multi-container Docker applications (this is how Defang identifies services to be deployed).\n3. A [.dockerignore](https://docs.docker.com/build/building/context/#dockerignore-files) to ignore files that are not needed in the Docker image or will be generated during the build process.\n\n## Prerequisite\n1. Download [Defang CLI](https://github.com/DefangLabs/defang)\n2. If you are using [Defang BYOC](https://docs.defang.io/docs/concepts/defang-byoc), make sure you have properly [authenticated your AWS account (optional)](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html) \n\n## A Step-by-Step Guide\n1. Open the terminal and type `defang login`\n2. Type `defang compose up` in the CLI\n3. Your app should be up and running with Defang in minutes!\n\n---\n\nTitle: Simple Flask App\n\nShort Description: A basic Flask todo app.\n\nTags: flask, python\n\nLanguages: python","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaeltm%2Fdemo-flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphaeltm%2Fdemo-flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaeltm%2Fdemo-flask/lists"}