Files
BortStack/docs/TEMPLATE_README.md

2.3 KiB

BortStack

This repository contains a small React/Vite frontend and Flask/SQLAlchemy API that implement a base registration and token-authentication flow. Runtime health and implementation status are documented separately from this index.

Development

Create a local Python environment, install dependencies, migrate, and start the API from api/:

python3 -m venv api/.venv
api/.venv/bin/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, start the frontend:

cd react
npm ci
npx playwright install chromium
npm run dev

Supported validation commands are:

cd api && .venv/bin/pytest --cov --cov-report=term-missing
cd react && npm run lint && npm test && npm run build && npm run test:e2e
docker compose --env-file .env.example config --quiet

Development defaults to SQLite and disabled email delivery. Production requires external configuration based on .env.example; see docs/DEPLOYMENT.md.

Project context

The repository is the source of truth. Start each new Codex or ChatGPT conversation by reading these files and then inspecting the implementation relevant to the request. Use the maintenance workflow in AGENTS.md; old chat transcripts and the handoff do not supersede current code.

Create a new project

From this repository, create a clean project copy at a destination that does not already exist:

scripts/create-project.sh "My Application" /path/to/my-application --git-init

Omit --git-init to leave Git initialisation to a later step. The generator refuses existing destinations and projects nested inside this template. It excludes template-local secrets, databases, environments, dependencies, caches, build output, Git history, active tasks, and handoff history. The generated project receives fresh context documents and retains the Starfleet communication protocol in AGENTS.md.