From cc94194fd1630295feb08a109083af09b7596cce Mon Sep 17 00:00:00 2001 From: Roberto Musso Date: Wed, 8 Apr 2026 23:27:34 +0200 Subject: [PATCH] update app name --- .env.example | 2 +- .gitea/workflows/deploy.yaml | 20 ++++++++++---------- .github/workflows/ci.yml | 4 ++-- README.md | 12 ++++++------ app/billing/stripe_service.py | 4 ++-- app/config/settings.py | 2 +- app/main.py | 2 +- docker-compose.yml | 4 ++-- 8 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.env.example b/.env.example index a45f18b..576794b 100644 --- a/.env.example +++ b/.env.example @@ -2,7 +2,7 @@ ENV=dev # ── Database ────────────────────────────────────────────────────────────────── -DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/adiuva +DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/adiuvai # ── Auth ────────────────────────────────────────────────────────────────────── JWT_SECRET=replace-with-a-long-random-secret diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 373ccb6..cc6c5c9 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -48,23 +48,23 @@ jobs: key: ${{ secrets.SSH_KEY }} script: | set -e - DEPLOY_DIR="/opt/adiuva-api" + DEPLOY_DIR="/opt/adiuvai-api" REPO_URL="http://10.0.0.119:3000/${{ gitea.repository }}.git" TAG="${{ gitea.ref_name }}" # ── Pull latest code ── - cd /tmp && rm -rf adiuva-api-deploy - git clone --depth 1 --branch "${TAG}" "${REPO_URL}" adiuva-api-deploy + cd /tmp && rm -rf adiuvai-api-deploy + git clone --depth 1 --branch "${TAG}" "${REPO_URL}" adiuvai-api-deploy # ── Sync source (preserve .env) ── - cp -rf /tmp/adiuva-api-deploy/app/ \ - /tmp/adiuva-api-deploy/alembic/ \ - /tmp/adiuva-api-deploy/alembic.ini \ - /tmp/adiuva-api-deploy/Dockerfile \ - /tmp/adiuva-api-deploy/docker-compose.yml \ - /tmp/adiuva-api-deploy/requirements.txt \ + cp -rf /tmp/adiuvai-api-deploy/app/ \ + /tmp/adiuvai-api-deploy/alembic/ \ + /tmp/adiuvai-api-deploy/alembic.ini \ + /tmp/adiuvai-api-deploy/Dockerfile \ + /tmp/adiuvai-api-deploy/docker-compose.yml \ + /tmp/adiuvai-api-deploy/requirements.txt \ "$DEPLOY_DIR/" - rm -rf /tmp/adiuva-api-deploy + rm -rf /tmp/adiuvai-api-deploy # ── Verify .env ── if [ ! -f "$DEPLOY_DIR/.env" ]; then diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c3e72f..0943da8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,7 +58,7 @@ jobs: - uses: actions/checkout@v4 - name: Build image - run: docker build -t adiuva-api:ci . + run: docker build -t adiuvai-api:ci . - name: Verify gunicorn installed - run: docker run --rm adiuva-api:ci gunicorn --version + run: docker run --rm adiuvai-api:ci gunicorn --version diff --git a/README.md b/README.md index a9bc2fc..1b6c19a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Adiuva Cloud API +# AdiuvAI Cloud API **AI-powered project management backend with LLM orchestration and subscription billing.** @@ -29,7 +29,7 @@ Built with FastAPI · Python 3.12 · PostgreSQL · LangChain · Stripe ## Overview -Adiuva Cloud API is the FastAPI backend that powers the **Adiuva Electron desktop app**. It provides LLM-powered chat orchestration, text embedding generation, and Stripe-based subscription billing across four tiers. +AdiuvAI Cloud API is the FastAPI backend that powers the **AdiuvAI Electron desktop app**. It provides LLM-powered chat orchestration, text embedding generation, and Stripe-based subscription billing across four tiers. ### Design Principles @@ -134,7 +134,7 @@ Adiuva Cloud API is the FastAPI backend that powers the **Adiuva Electron deskto ```bash # Clone the repository -git clone && cd adiuva-api +git clone && cd adiuvai-api # Create a virtual environment python -m venv .venv && source .venv/bin/activate @@ -211,7 +211,7 @@ This starts PostgreSQL alongside the app. ```bash # Database (uses the compose PostgreSQL) -DATABASE_URL=postgresql+asyncpg://postgres:postgres@db:5432/adiuva +DATABASE_URL=postgresql+asyncpg://postgres:postgres@db:5432/adiuvai # Billing — leave empty to stub (no Stripe needed) STRIPE_SECRET_KEY= @@ -252,7 +252,7 @@ All variables are loaded from a `.env` file via Pydantic Settings. Source: `app/ | Variable | Type | Default | Description | |---|---|---|---| -| `DATABASE_URL` | `str` | `postgresql+asyncpg://postgres:postgres@localhost:5432/adiuva` | Async SQLAlchemy connection string | +| `DATABASE_URL` | `str` | `postgresql+asyncpg://postgres:postgres@localhost:5432/adiuvai` | Async SQLAlchemy connection string | | `JWT_SECRET` | `str` | `change-me-in-production` | HMAC secret for JWT signing | | `JWT_ALGORITHM` | `str` | `HS256` | JWT signing algorithm | | `JWT_ACCESS_TOKEN_EXPIRE_MINUTES` | `int` | `30` | Access token time-to-live | @@ -526,7 +526,7 @@ pytest -v ## Project Structure ``` -adiuva-api/ +adiuvai-api/ ├── alembic.ini # Alembic configuration ├── docker-compose.yml # Docker Compose (app + PostgreSQL) ├── Dockerfile # Multi-stage production build diff --git a/app/billing/stripe_service.py b/app/billing/stripe_service.py index 3bd9038..f2a100f 100644 --- a/app/billing/stripe_service.py +++ b/app/billing/stripe_service.py @@ -43,8 +43,8 @@ class StripeService: self, user_id: str, tier: str, - success_url: str = "https://app.adiuva.app/billing/success?session_id={CHECKOUT_SESSION_ID}", - cancel_url: str = "https://app.adiuva.app/billing/cancel", + success_url: str = "https://app.adiuvai.app/billing/success?session_id={CHECKOUT_SESSION_ID}", + cancel_url: str = "https://app.adiuvai.app/billing/cancel", ) -> str: """Create a Stripe checkout session and return the URL. diff --git a/app/config/settings.py b/app/config/settings.py index c461126..65e8136 100644 --- a/app/config/settings.py +++ b/app/config/settings.py @@ -3,7 +3,7 @@ from pydantic_settings import BaseSettings, SettingsConfigDict class Settings(BaseSettings): - DATABASE_URL: str = "postgresql+asyncpg://postgres:postgres@localhost:5432/adiuva" + DATABASE_URL: str = "postgresql+asyncpg://postgres:postgres@localhost:5432/adiuvai" JWT_SECRET: str = "change-me-in-production" JWT_ALGORITHM: str = "HS256" JWT_ACCESS_TOKEN_EXPIRE_MINUTES: int = 30 diff --git a/app/main.py b/app/main.py index c1859d6..68fab9a 100644 --- a/app/main.py +++ b/app/main.py @@ -30,7 +30,7 @@ async def lifespan(app: FastAPI): def create_app() -> FastAPI: app = FastAPI( - title="Adiuva Cloud API", + title="AdiuvAI Cloud API", version="0.1.0", docs_url="/docs" if settings.ENV == "dev" else None, redoc_url=None, diff --git a/docker-compose.yml b/docker-compose.yml index 21197ef..a066b7b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ services: - path: .env required: false environment: - DATABASE_URL: postgresql+asyncpg://postgres:postgres@db:5432/adiuva + DATABASE_URL: postgresql+asyncpg://postgres:postgres@db:5432/adiuvai GITHUB_COPILOT_TOKEN_DIR: /root/.config/litellm/github_copilot volumes: - copilot_tokens:/root/.config/litellm/github_copilot @@ -21,7 +21,7 @@ services: environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres - POSTGRES_DB: adiuva + POSTGRES_DB: adiuvai volumes: - postgres_data:/var/lib/postgresql/data healthcheck: