Vitamine-S GroupwareService의 AI 기능을 담당하는 FastAPI 서버입니다.
| 항목 | 내용 |
|---|---|
| Language | Python |
| Framework | FastAPI |
| ASGI Server | Uvicorn |
| Config | Pydantic Settings, python-dotenv |
| AI Client | Google GenAI |
| Template | Jinja2 |
| Test | Pytest |
app/
├── __init__.py
├── main.py
└── core/
├── __init__.py
└── config.py
.env.example을 복사해 .env를 생성합니다.
cp .env.example .envWindows CMD에서는 다음 명령어를 사용할 수 있습니다.
copy .env.example .envpython -m venv .venvWindows CMD:
.venv\Scripts\activate.batPowerShell:
.\.venv\Scripts\Activate.ps1pip install -r requirements.txtuvicorn app.main:app --reload --port 8000서버 실행 후 아래 주소에서 Swagger 문서를 확인할 수 있습니다.
http://127.0.0.1:8000/docs
GET /health