feat(integrations): setup integrations service structure

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Claude AI
2026-01-29 22:17:18 +00:00
parent 24850e23f0
commit e24bc20070
5 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY ./app ./app
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8002"]

View File

@@ -0,0 +1 @@
# Integrations Service

View File

@@ -0,0 +1,22 @@
from pydantic_settings import BaseSettings
from functools import lru_cache
class Settings(BaseSettings):
# Odoo Connection
ODOO_URL: str = ""
ODOO_DB: str = ""
ODOO_USER: str = ""
ODOO_API_KEY: str = ""
# Internal Services
API_GATEWAY_URL: str = "http://localhost:8000"
FLOW_ENGINE_URL: str = "http://localhost:8001"
class Config:
env_file = ".env"
@lru_cache
def get_settings() -> Settings:
return Settings()

View File

@@ -0,0 +1,17 @@
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
app = FastAPI(title="WhatsApp Central - Integrations Service")
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
@app.get("/health")
def health_check():
return {"status": "healthy", "service": "integrations"}

View File

@@ -0,0 +1,6 @@
fastapi==0.109.0
uvicorn[standard]==0.27.0
pydantic==2.5.3
pydantic-settings==2.1.0
httpx==0.26.0
python-multipart==0.0.6