67 lines
2.3 KiB
Markdown
67 lines
2.3 KiB
Markdown
# 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`.
|