Files
AI_CPA/README.md
T

94 lines
3.0 KiB
Markdown

# AI CPA (BookKeepPro)
> An intelligent, production-ready accounting, bookkeeping, and CPA client portal platform with AI-assisted document processing, executive briefings, and automated tax compliance workflows.
---
## 🌟 Key Features
- **Fintech-Grade Client Portal**: Modern, responsive dashboard engineered with high-contrast WCAG AA compliance, intuitive metrics, filing countdowns, and document approval flows.
- **Role-Based Admin Console**: Client scoping, CPA staff assignments, review pipelines for personal and business tax filings, and customizable engagement tracking.
- **AI-Powered CPA Assistant & Daily Digest**: Integrated AI assistant capable of answering client inquiries, summarizing tax documents, and generating daily executive digests.
- **Automated Workflow & Deadlines**: Dynamic filing deadline calculation, overdue notifications, engagement letter digital signing, and certified deliverables vault.
- **Robust Security & Privacy**: JWT-based session security, sanitized asset delivery, structured role authorization, and production-tested reverse proxy configurations.
---
## 🏗️ System Architecture & Tech Stack
```mermaid
graph TD
Client["Client / CPA Browser"] -->|"HTTPS / HTTP"| Nginx["Nginx Reverse Proxy"]
subgraph Stack ["Docker Compose Network"]
Nginx -->|"/ (Static)"| Frontend["React 19 + Vite (Frontend)"]
Nginx -->|"/api/*"| Backend["FastAPI Backend (Python 3.12)"]
Backend <-->|"SQLAlchemy (3306)"| DB[("MySQL 8.4 Database")]
Backend <-->|"Vector / File Storage"| Storage["Uploads & Document Vault"]
Backend <-->|"LLM APIs"| AI["OpenRouter / LLM Services"]
end
```
### Technology Highlights
- **Frontend**: React 19, Vite, Plain Modern CSS (Design System tokens), Context API, React Router 7.
- **Backend**: Python 3.12, FastAPI, SQLAlchemy ORM, Pydantic, APScheduler.
- **Database**: MySQL 8.4 / MariaDB with automated schema migrations.
- **Deployment**: Docker, Docker Compose, Nginx Reverse Proxy with SSL Certbot readiness.
---
## 🚀 Quick Start & Local Setup
### Prerequisites
- Node.js 18+ & npm
- Python 3.12+ & pip / venv
- MySQL 8.4+ (or Docker)
### 1. Backend Setup
```bash
cd services/api
python -m venv venv
# On Windows:
.\venv\Scripts\activate
# On Linux/macOS:
source venv/bin/activate
pip install -r ../../requirements.txt
```
Configure your environment variables:
```bash
cp ../../.env.example ../../.env
# Edit .env with your MySQL credentials and API keys
```
Start the FastAPI application:
```bash
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
```
### 2. Frontend Setup
```bash
cd frontend
npm install
npm run dev
```
The client app will be accessible at `http://localhost:5173`.
---
## 🐳 Docker Deployment
To spin up the entire production stack (Frontend, Backend, and MySQL):
```bash
docker compose up -d --build
```
Detailed VPS deployment instructions, SSL certification, and reverse-proxy setups can be found in [`DEPLOYMENT.md`](./DEPLOYMENT.md).
---
## 📄 License
Proprietary - All rights reserved.