{"id":25651637,"url":"https://github.com/rb-thompson/flask-broiler-plate","last_synced_at":"2026-05-17T10:35:52.488Z","repository":{"id":277272867,"uuid":"931897594","full_name":"rb-thompson/flask-broiler-plate","owner":"rb-thompson","description":"Flask web application broiler-plate.","archived":false,"fork":false,"pushed_at":"2025-02-13T03:13:59.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T04:22:45.934Z","etag":null,"topics":["dotenv","flask","python"],"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/rb-thompson.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-02-13T03:09:59.000Z","updated_at":"2025-02-13T03:16:59.000Z","dependencies_parsed_at":"2025-02-13T04:32:51.039Z","dependency_job_id":null,"html_url":"https://github.com/rb-thompson/flask-broiler-plate","commit_stats":null,"previous_names":["rb-thompson/flask-broiler-plate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rb-thompson%2Fflask-broiler-plate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rb-thompson%2Fflask-broiler-plate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rb-thompson%2Fflask-broiler-plate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rb-thompson%2Fflask-broiler-plate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rb-thompson","download_url":"https://codeload.github.com/rb-thompson/flask-broiler-plate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240348008,"owners_count":19787239,"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":["dotenv","flask","python"],"created_at":"2025-02-23T17:19:10.301Z","updated_at":"2026-05-17T10:35:47.469Z","avatar_url":"https://github.com/rb-thompson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask Broilerplate: Environment Setup\n\nCustomizable broiler-plate and project template for scaling python web projects. \n\nKey Principles:\n- Modularity\n- DRY - 'Don't Repeat Yourself'\n- Separation of Concerns\n- Configuration Management\n- Testing\n\n\n## Getting Started\n\n1. Create and activate python virtual environment:\n```\npython -m venv venv\n```\n\n```\nvenv\\Scripts\\activate\n```\n\n\u003e **Note:** [This Python extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python) manages virtual environments automatically.\n\n2. Create `.env` file for project variables\n\n3. Create entry point: New file `app.py`\n\n4. Include project packages: \n```\npy -m pip install -r requirements.txt\n```\nAND\n```\npip freeze \u003e requirements.txt\n```\n\n5. Layer application using a **modular file structure**:\n\n```\nproject/\n│\n├── app/\n│   ├── __init__.py          # App factory, configuration, and initialization\n│   ├── config.py            # Configuration settings (dev, prod, testing)\n│   ├── extensions.py        # Initialize extensions (e.g., SQLAlchemy, Flask-Migrate)\n│   │\n│   ├── models/              # Database models (SQLAlchemy)\n│   │   ├── __init__.py\n│   │   └── user_repository.py\n│   │\n│   ├── repositories/        # Data access layer (e.g., SQLAlchemy queries)\n│   │   ├── __init__.py\n│   │   ├── user.py\n│   │   └── post.py\n│   │\n│   ├── services/            # Business logic (e.g., user registration, post creation)\n│   │   ├── __init__.py\n│   │   ├── user_service.py\n│   │   └── post_service.py\n│   │\n│   ├── api/                 # REST API (Blueprint)\n│   │   ├── __init__.py\n│   │   ├── v1/              # Versioned API\n│   │   │   ├── routes.py\n│   │   │   └── schemas.py   # Request/response validation (e.g., Marshmallow)\n│   │   └── v2/              # Future API versions\n│   │       ├── routes.py\n│   │       └── schemas.py\n│   │\n│   ├── web/                 # Web routes (Blueprint for HTML templates)\n│   │   ├── __init__.py\n│   │   ├── routes.py\n│   │   └── forms.py         # WTForms for form validation\n│   │\n│   ├── templates/           # HTML templates (Jinja2)\n│   │   ├── base.html\n│   │   ├── web/\n│   │   │   ├── index.html\n│   │   │   └── profile.html\n│   │   └── errors/\n│   │       ├── 404.html\n│   │       └── 500.html\n│   │\n│   ├── static/              # Static files (CSS, JS, images)\n│   │   ├── css/\n│   │   ├── scripts/\n│   │   └── images/\n│   │\n│   └── utils/               # Shared utilities (e.g., helpers, custom decorators)\n│       ├── __init__.py\n│       └── helpers.py\n│\n├── tests/                   # Unit and integration tests\n│   ├── __init__.py\n│   ├── test_models.py\n│   ├── test_services.py\n│   └── test_api.py\n│\n├── requirements.txt         # Dependencies\n├── .env                     # Environment variables (not committed)\n├── run.py                   # Entry point to run the app\n└── README.md                # Important App information\n```\n\n\n## DRY Principles\n\nReuses service and repository logic, avoiding duplication.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frb-thompson%2Fflask-broiler-plate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frb-thompson%2Fflask-broiler-plate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frb-thompson%2Fflask-broiler-plate/lists"}