1.6 KiB
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
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:
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
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.