Migrate Flask React template into Forge
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# Project instructions
|
||||
|
||||
Read `docs/PROJECT_OVERVIEW.md`, `docs/CURRENT_STATE.md`, `docs/DECISIONS.md`, `docs/TASKS.md`, and `docs/HANDOFF.md` before task work. Inspect Git status and relevant code. Record accepted decisions and task scope in this repository. Preserve unrelated work and never commit secrets. The project owner defines branch, review, deployment, and contributor permissions; no Forge runtime is required.
|
||||
@@ -0,0 +1,33 @@
|
||||
# __PROJECT_NAME__
|
||||
|
||||
This independent project was generated from Forge's Flask/React template. Define product requirements and choose a project profile before implementation. No GitHub account, production host, email provider, or Forge runtime is required for local development.
|
||||
|
||||
## Local development
|
||||
|
||||
```sh
|
||||
python3 -m venv api/.venv
|
||||
api/.venv/bin/python -m pip install -r api/config/requirements-dev.txt
|
||||
cd api && .venv/bin/flask --app api.py db upgrade && .venv/bin/flask --app api.py run
|
||||
```
|
||||
|
||||
In another terminal:
|
||||
|
||||
```sh
|
||||
cd react && npm ci && npm run dev
|
||||
```
|
||||
|
||||
Windows PowerShell: create the virtual environment with `py -3 -m venv api/.venv`, then use `api/.venv/Scripts/python.exe` and `api/.venv/Scripts/flask.exe` in place of the Unix paths. Run Node commands from `react/` on either platform.
|
||||
|
||||
## Validation
|
||||
|
||||
```sh
|
||||
cd api && .venv/bin/pytest
|
||||
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`.
|
||||
|
||||
## Project context
|
||||
|
||||
Read `AGENTS.md` and `docs/` before changing this project. The profile is deliberately unset; select business or personal and record owner, brand, contributor, testing, and deployment choices separately. Email delivery is disabled until a sender/provider is configured. See `docs/OPTIONAL_SERVICES.md` for optional hosting and email foundations.
|
||||
@@ -0,0 +1,3 @@
|
||||
# Current state
|
||||
|
||||
__PROJECT_NAME__ was generated from the Forge Flask/React template. Generation copied the files; dependency installation, tests, migrations, runtime health, and external services are unverified for this project. Inspect actual code/configuration and update this record after validation.
|
||||
@@ -0,0 +1,3 @@
|
||||
# Decisions
|
||||
|
||||
No product profile, owner, brand, email provider, repository provider, or hosting decision has been recorded yet. Preserve accepted decisions here with date, rationale, and consequences.
|
||||
@@ -0,0 +1,3 @@
|
||||
# Handoff
|
||||
|
||||
__PROJECT_NAME__ was generated from a Flask/React foundation. No product decisions or runtime validation are implied by generation. Read `AGENTS.md` and the context files, select a profile explicitly, then run the commands in `README.md` and record actual results. Keep secrets outside Git.
|
||||
@@ -0,0 +1,7 @@
|
||||
# Optional services
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
@@ -0,0 +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.
|
||||
@@ -0,0 +1,6 @@
|
||||
# Tasks
|
||||
|
||||
## Initial project definition — __PROJECT_NAME__
|
||||
Status: Planned; implementation requires owner acceptance.
|
||||
|
||||
Define purpose, users, ownership, branding, business/personal profile, contributor permissions, testing expectations, and deployment expectations. Validate backend/frontend tests and migrations in this project. Email and hosting integrations remain optional; do not publish or deploy during initial setup.
|
||||
Reference in New Issue
Block a user