Support four database engines in Flask React template
This commit is contained in:
@@ -26,7 +26,7 @@ cd react && npm run lint && npm test && npm run build
|
||||
docker compose --env-file .env.example config --quiet
|
||||
```
|
||||
|
||||
Playwright browser tests are optional and require `npx playwright install chromium` followed by `npm run test:e2e`. Docker is optional for local development. `.env.example` contains local/example values only; do not use its placeholder passwords in production or commit a populated `.env`.
|
||||
Playwright browser tests are optional and require `npx playwright install chromium` followed by `npm run test:e2e`. Docker is optional for local development. Default Compose uses a persistent SQLite volume; PostgreSQL, MySQL, and MariaDB are opt-in through `ops/databases/` overlays. `.env.example` contains local/example values only; do not use database example passwords in production or commit a populated `.env`.
|
||||
|
||||
## Project context
|
||||
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
Local development needs no GitHub, production host, SWAG network, Resend account, or Cloudflare routing. Email delivery starts disabled. To enable it, choose and verify a project-specific sender/domain and contact destination, set `RESEND_API_KEY`, `EMAIL_FROM`, `CONTACT_EMAIL`, and `EMAIL_DELIVERY_ENABLED=true` in an untracked environment, then test account and contact flows. The code currently implements Resend outbound delivery; inbound routing is a separate operator choice.
|
||||
|
||||
`docker-compose.yml` provides MySQL, API, and nginx services with loopback diagnostic ports. It does not require an external reverse-proxy network. `ops/swag/` includes an optional Compose overlay and proxy sample for projects using SWAG; adapt networking and TLS separately before hosting. The Forge package retains a GitHub Actions CI/deployment example under `optional/github/`, but generation does not install an active workflow. Copying or enabling any deployment workflow is a separate project decision. Never use `.env.example` placeholder passwords or secrets in production.
|
||||
`docker-compose.yml` provides API and nginx services with loopback diagnostic ports and a persistent SQLite volume. It does not require an external database or reverse-proxy network. `ops/databases/` contains separate PostgreSQL, MySQL, and MariaDB Compose overlays plus safe example environment files. Select one engine per deployment; set `SQLALCHEMY_DATABASE_URI` explicitly outside Compose, or let the chosen overlay supply it. Replace example passwords in an untracked private env file and URL-encode reserved password characters in any database URL. Apply migrations against the selected engine before starting the API. `ops/swag/` includes an optional Compose overlay and proxy sample; adapt networking and TLS separately before hosting. The Forge package retains a GitHub Actions CI/deployment example under `optional/github/`, but generation does not install an active workflow. Copying or enabling any deployment workflow is a separate project decision. Never use example passwords or secrets in production.
|
||||
|
||||
Before production, choose a host and repository provider, configure external secrets, verify migrations/backup/rollback, review authentication and email policy, and run the project's required tests. Generation performs none of these actions.
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Project overview
|
||||
|
||||
__PROJECT_NAME__ is a newly generated Flask/React application foundation. Product purpose, intended users, ownership, branding, and deployment target are not yet selected. React/Vite lives under `react/`; Flask/SQLAlchemy and migrations live under `api/`. Development defaults to SQLite and disabled email. MySQL, Docker/nginx, Resend outbound email, SWAG, and GitHub automation are optional project choices. Generated code has no Forge runtime dependency.
|
||||
__PROJECT_NAME__ is a newly generated Flask/React application foundation. Product purpose, intended users, ownership, branding, and deployment target are not yet selected. React/Vite lives under `react/`; Flask/SQLAlchemy and migrations live under `api/`. SQLite is the local/default database; PostgreSQL, MySQL, and MariaDB are supported through explicit SQLAlchemy URLs and optional Compose overlays. Email is disabled by default. Docker/nginx, Resend outbound email, SWAG, and GitHub automation are optional project choices. Generated code has no Forge runtime dependency.
|
||||
|
||||
Reference in New Issue
Block a user