259 lines
9.2 KiB
Markdown
259 lines
9.2 KiB
Markdown
# Declarative Technology Profile Presets — UP-AI Framework
|
|
|
|
| Field | Value |
|
|
|---|---|
|
|
| **Document** | `tech-profile-presets.md` |
|
|
| **Location** | `process/templates/tech-profile-presets.md` |
|
|
| **Governed Process** | UP-AI v1.5 |
|
|
| **Purpose** | Ready-reference configuration snippets for `tech-profile.yaml` |
|
|
|
|
---
|
|
|
|
## Overview
|
|
|
|
UP-AI is strictly stack-agnostic. All agent skills dynamically read [`tech-profile.yaml`](../../tech-profile.yaml) at the project root to discover the target language, backend framework, ORM, migration tool, frontend framework, database, and testing tools.
|
|
|
|
To configure a project, copy the appropriate preset block below into your `tech-profile.yaml` under the `stack:` and `governance:` keys.
|
|
|
|
---
|
|
|
|
## Preset A: Frappe Framework (Full-Stack Python + MariaDB + DocType Engine)
|
|
|
|
> **Best for:** Rapid enterprise applications, ERP extensions, metadata-driven portals, and internal business platforms using Frappe v14/v15.
|
|
> **Architecture Note:** Frappe natively unifies the Data Model, Backend Controller, REST API, and Desk UI into **DocTypes**. Multi-tenancy is handled via Frappe's site architecture (`database_per_tenant`).
|
|
> **Developer & Container Guide:** For step-by-step setup with VS Code DevContainers (`frappe_docker`), native Antigravity AI execution, parallel sub-agent git worktrees, and clean downstream distribution via `git subtree push`, see [Frappe App-Centric Development Guide](../framework_guides/frappe_app_centric_development_guide.md).
|
|
|
|
```yaml
|
|
# ==============================================================================
|
|
# UP-AI Preset A: Frappe Framework
|
|
# ==============================================================================
|
|
stack:
|
|
architecture_pattern: "modular_monolith"
|
|
multi_tenancy:
|
|
enabled: true
|
|
model: "database_per_tenant" # Frappe sites (bench new-site) provide isolated DBs
|
|
|
|
backend:
|
|
language: "python"
|
|
framework: "frappe" # Frappe Framework v14 / v15
|
|
orm: "doctype" # Frappe DocType / Document meta-model
|
|
migrations: "bench_migrate" # bench migrate / DocType JSON sync
|
|
api_standard: "rest_openapi" # Frappe REST resource API (/api/resource/...) & @frappe.whitelist()
|
|
test_framework: "frappe_test_runner" # bench --site <site> run-tests --app <app>
|
|
coverage_tool: "coverage"
|
|
|
|
frontend:
|
|
framework: "frappe_desk" # Standard Frappe Desk (or "vue" / "react" via @frappe/ui)
|
|
language: "javascript"
|
|
state_management: "context_api"
|
|
ui_library: "frappe_desk" # Frappe Desk UI controls & form views
|
|
design_system_tokens: "04_generated_documentation/06_wireframes/DESIGN.md"
|
|
test_framework: "cypress"
|
|
e2e_framework: "playwright"
|
|
|
|
authentication:
|
|
provider: "frappe_auth" # Frappe session, OAuth2 bearer, or token-based auth
|
|
protocol: "session_cookie_or_token"
|
|
token_standard: "token_header"
|
|
authorization_model: "rbac" # Frappe DocType Role & Permission Manager
|
|
|
|
database:
|
|
primary: "mariadb" # MariaDB (Frappe default) or "postgresql"
|
|
cache_and_streams: "redis" # Frappe native Redis (cache, queue, socketio)
|
|
search_engine: "none"
|
|
|
|
sandboxes:
|
|
- id: "identity_provider"
|
|
service_name: "Auth & Identity"
|
|
mock_adapter_path: "sandbox/identity_mock.py"
|
|
mock_mode: "deterministic"
|
|
- id: "payment_gateway"
|
|
service_name: "Payment Gateway"
|
|
mock_adapter_path: "sandbox/payment_mock.py"
|
|
mock_mode: "deterministic"
|
|
```
|
|
|
|
---
|
|
|
|
## Preset B: Django / Django REST Framework (Python + PostgreSQL + DRF)
|
|
|
|
> **Best for:** Scalable Python web applications, REST APIs, and data-driven systems leveraging the Django ecosystem.
|
|
|
|
```yaml
|
|
# ==============================================================================
|
|
# UP-AI Preset B: Django & Django REST Framework
|
|
# ==============================================================================
|
|
stack:
|
|
architecture_pattern: "modular_monolith"
|
|
multi_tenancy:
|
|
enabled: true
|
|
model: "row_level_security" # or "schema_per_tenant" via django-tenants
|
|
|
|
backend:
|
|
language: "python"
|
|
framework: "django"
|
|
orm: "django_orm" # django.db.models
|
|
migrations: "django_migrations" # python manage.py makemigrations / migrate
|
|
api_standard: "rest_openapi" # Django REST Framework + drf-spectacular
|
|
test_framework: "pytest" # pytest-django
|
|
coverage_tool: "pytest-cov"
|
|
|
|
frontend:
|
|
framework: "react"
|
|
language: "typescript"
|
|
state_management: "zustand"
|
|
ui_library: "tailwind_shadcn"
|
|
design_system_tokens: "04_generated_documentation/06_wireframes/DESIGN.md"
|
|
test_framework: "vitest"
|
|
e2e_framework: "playwright"
|
|
|
|
authentication:
|
|
provider: "custom_oidc" # or Keycloak / django-allauth
|
|
protocol: "oidc_pkce"
|
|
token_standard: "jwt_bearer"
|
|
authorization_model: "rbac_abac"
|
|
|
|
database:
|
|
primary: "postgresql"
|
|
cache_and_streams: "valkey" # or redis
|
|
search_engine: "pg_trgm"
|
|
```
|
|
|
|
---
|
|
|
|
## Preset C: Java / Spring Boot (Java 17/21 + PostgreSQL + Hibernate)
|
|
|
|
> **Best for:** Enterprise, high-throughput financial, banking, and mission-critical backend microservices or modular monoliths.
|
|
|
|
```yaml
|
|
# ==============================================================================
|
|
# UP-AI Preset C: Java / Spring Boot
|
|
# ==============================================================================
|
|
stack:
|
|
architecture_pattern: "modular_monolith" # or "microservices"
|
|
multi_tenancy:
|
|
enabled: true
|
|
model: "schema_per_tenant" # or "database_per_tenant"
|
|
|
|
backend:
|
|
language: "java"
|
|
framework: "spring_boot" # Spring Boot 3.x
|
|
orm: "hibernate" # Spring Data JPA
|
|
migrations: "flyway" # Flyway or Liquibase
|
|
api_standard: "rest_openapi" # Springdoc OpenAPI 3
|
|
test_framework: "junit5" # JUnit 5 + Mockito + Testcontainers
|
|
coverage_tool: "jacoco"
|
|
|
|
frontend:
|
|
framework: "react"
|
|
language: "typescript"
|
|
state_management: "zustand"
|
|
ui_library: "tailwind_shadcn"
|
|
design_system_tokens: "04_generated_documentation/06_wireframes/DESIGN.md"
|
|
test_framework: "vitest"
|
|
e2e_framework: "playwright"
|
|
|
|
authentication:
|
|
provider: "keycloak"
|
|
protocol: "oidc_pkce"
|
|
token_standard: "jwt_bearer"
|
|
authorization_model: "rbac_abac" # Spring Security 6
|
|
|
|
database:
|
|
primary: "postgresql"
|
|
cache_and_streams: "valkey" # or redis
|
|
search_engine: "none"
|
|
```
|
|
|
|
---
|
|
|
|
## Preset D: FastAPI Modular Monolith (UP-AI Baseline Default)
|
|
|
|
> **Best for:** High-performance async Python APIs, AI-native backends, microservices, and modern SaaS with Row-Level Security.
|
|
|
|
```yaml
|
|
# ==============================================================================
|
|
# UP-AI Preset D: FastAPI Modular Monolith (Default Baseline)
|
|
# ==============================================================================
|
|
stack:
|
|
architecture_pattern: "modular_monolith"
|
|
multi_tenancy:
|
|
enabled: true
|
|
model: "row_level_security" # PostgreSQL RLS + session tenant context
|
|
|
|
backend:
|
|
language: "python"
|
|
framework: "fastapi"
|
|
orm: "sqlalchemy" # SQLAlchemy 2.0 Async
|
|
migrations: "alembic" # Alembic
|
|
api_standard: "rest_openapi" # FastAPI OpenAPI
|
|
test_framework: "pytest"
|
|
coverage_tool: "pytest-cov"
|
|
|
|
frontend:
|
|
framework: "react"
|
|
language: "typescript"
|
|
state_management: "zustand"
|
|
ui_library: "tailwind_shadcn"
|
|
design_system_tokens: "04_generated_documentation/06_wireframes/DESIGN.md"
|
|
test_framework: "vitest"
|
|
e2e_framework: "playwright"
|
|
|
|
authentication:
|
|
provider: "keycloak"
|
|
protocol: "oidc_pkce"
|
|
token_standard: "jwt_bearer"
|
|
authorization_model: "rbac_abac"
|
|
|
|
database:
|
|
primary: "postgresql"
|
|
cache_and_streams: "valkey"
|
|
search_engine: "none"
|
|
```
|
|
|
|
---
|
|
|
|
## Preset E: Node.js / NestJS (TypeScript + PostgreSQL + Prisma)
|
|
|
|
> **Best for:** Full-stack TypeScript applications, enterprise Node.js microservices, and reactive APIs.
|
|
|
|
```yaml
|
|
# ==============================================================================
|
|
# UP-AI Preset E: NestJS & Prisma
|
|
# ==============================================================================
|
|
stack:
|
|
architecture_pattern: "modular_monolith"
|
|
multi_tenancy:
|
|
enabled: true
|
|
model: "schema_per_tenant" # or RLS with Prisma client extensions
|
|
|
|
backend:
|
|
language: "typescript"
|
|
framework: "nestjs"
|
|
orm: "prisma"
|
|
migrations: "prisma" # npx prisma migrate
|
|
api_standard: "rest_openapi" # NestJS Swagger/OpenAPI
|
|
test_framework: "vitest" # or jest
|
|
coverage_tool: "vitest"
|
|
|
|
frontend:
|
|
framework: "nextjs"
|
|
language: "typescript"
|
|
state_management: "zustand"
|
|
ui_library: "tailwind_shadcn"
|
|
design_system_tokens: "04_generated_documentation/06_wireframes/DESIGN.md"
|
|
test_framework: "vitest"
|
|
e2e_framework: "playwright"
|
|
|
|
authentication:
|
|
provider: "keycloak"
|
|
protocol: "oidc_pkce"
|
|
token_standard: "jwt_bearer"
|
|
authorization_model: "rbac_abac"
|
|
|
|
database:
|
|
primary: "postgresql"
|
|
cache_and_streams: "valkey"
|
|
search_engine: "none"
|
|
```
|