Kouchou-AI Development
Overview
Use this skill for setup, build, and operational commands.
Local development setup
- •Copy
.env.exampleto.envbefore starting services. - •Start all services with
docker compose up. - •Initialize frontend dependencies with
make client-setup. - •Run the public viewer, admin, and dummy server with
make client-dev -j 3.
Build and static exports
- •Build all Docker images with
make build. - •Generate static exports with
make client-build-static. - •Build individual frontends with
pnpm run buildinapps/public-viewer/orapps/admin/.
Linting and formatting
- •Run root lint/format with
pnpm run lintandpnpm run format. - •Run frontend linting with
pnpm run lintinside each frontend app. - •Run backend linting with
rye run ruff check .insideapps/api/.
Server development
- •Run the API locally with
rye run uvicorn src.main:app --reload --port 8000inapps/api/. - •Use
make lint/checkandmake lint/formatinapps/api/. - •Use
make lint/api-checkandmake lint/api-formatfor Docker-based linting.
Environment configuration
- •Keep
.envfiles scoped per service directory and reference.env.examplefor defaults. - •Restart and rebuild Docker images if you change environment variables that are baked at build time.
Pull Request workflow
- •Follow
.github/PULL_REQUEST_TEMPLATE.mdwhen creating a PR.
Documentation conventions
- •Add language identifiers to fenced code blocks in docs (for example,
bashortext).
Azure deployment helpers
- •Use
make azure-setup-allfor full Azure setup. - •Use
make azure-build,make azure-push,make azure-deploy, andmake azure-infofor individual steps.
Local LLM notes
- •Enable Ollama with
docker compose --profile ollama up -dwhen GPU support is available. - •Plan for 8GB+ GPU memory for local LLM usage.