BS-001 Initialize BortStack foundation and project workflow

This commit is contained in:
rob
2026-11-10 14:02:50 +00:00
parent 1ec90a082f
commit 52265961cb
119 changed files with 10298 additions and 64 deletions
+66
View File
@@ -0,0 +1,66 @@
# 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/`:
```bash
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:
```bash
cd react
npm ci
npx playwright install chromium
npm run dev
```
Supported validation commands are:
```bash
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`](docs/DEPLOYMENT.md).
## Project context
- [Agent instructions](AGENTS.md)
- [Project overview](docs/PROJECT_OVERVIEW.md)
- [Current state](docs/CURRENT_STATE.md)
- [Durable decisions](docs/DECISIONS.md)
- [Active tasks](docs/TASKS.md)
- [Latest handoff](docs/HANDOFF.md)
- [Production deployment](docs/DEPLOYMENT.md)
- [UI, accessibility, and metadata guide](docs/UI_GUIDE.md)
- [Backup and restore decision](docs/BACKUP_RESTORE.md)
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:
```bash
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`.