{"id":19311014,"url":"https://github.com/a0s/flask-app-template","last_synced_at":"2026-06-17T19:31:45.521Z","repository":{"id":146415014,"uuid":"489684897","full_name":"a0s/flask-app-template","owner":"a0s","description":"Flask app template with migrations and autoloader. One file - one model.","archived":false,"fork":false,"pushed_at":"2022-05-08T08:56:15.000Z","size":5,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T06:37:51.821Z","etag":null,"topics":[],"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/a0s.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":"2022-05-07T13:44:36.000Z","updated_at":"2022-05-09T20:20:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"5af3d047-8852-40b6-a7db-3bafd7e8792b","html_url":"https://github.com/a0s/flask-app-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/a0s/flask-app-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fflask-app-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fflask-app-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fflask-app-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fflask-app-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a0s","download_url":"https://codeload.github.com/a0s/flask-app-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fflask-app-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34463552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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":[],"created_at":"2024-11-10T00:27:20.360Z","updated_at":"2026-06-17T19:31:45.504Z","avatar_url":"https://github.com/a0s.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flask-app-template\n\nFlask app template with migrations and autoloader.\nBased on Flask-SQLAlchemy and Flask-Migrate. \n\n## How to use\n\n1. Clone the repo\n2. Install requirement\n\n    ```shell\n    pip install -r requirement.txt\n    ```\n   \n3. Init migrations dir\n\n   ```shell\n   flask db init\n   ```\n\n4. Generate first migration for User class (`app/models/user.py`) and apply it\n\n   ```shell\n   flask db migrate -m \"Add User\"\n   flask db upgrade\n   ```\n\n5. Create new class `app/models/product.py`\n   ```python\n   from . import db\n   \n   class Product(db.Model):\n       id = db.Column(db.Integer, primary_key=True)\n       name = db.Column(db.String(128))\n   ```\n\n   Then run `migrate`, `upgrade` and commit changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa0s%2Fflask-app-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa0s%2Fflask-app-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa0s%2Fflask-app-template/lists"}