docs: add README.md and .env.example template

This commit is contained in:
Atharv1705
2026-11-05 11:36:19 +05:30
parent 5d19eb4730
commit b90e9336a2
2 changed files with 130 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
# MySQL Database Configuration
MYSQL_HOST=127.0.0.1
MYSQL_PORT=3306
MYSQL_USER=bookkeep_user
MYSQL_PASSWORD=your_mysql_password
MYSQL_DATABASE=bookkeep_db
# Security & JWT Auth
SECRET_KEY=generate_a_secure_random_secret_key_here
JWT_ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=1440
# Client & CORS
FRONTEND_URL=http://localhost:5173
ALLOWED_ORIGINS=http://localhost:5173,http://localhost:3000,http://127.0.0.1:5173
# Email / SMTP Notifications
ADMIN_EMAIL=admin@example.com
MAIL_FROM=no-reply@example.com
MAIL_FROM_NAME=BookKeepPro Support
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your_email@example.com
SMTP_PASSWORD=your_smtp_app_password
SMTP_TLS=True
MAIL_SSL_TLS=False
# Google Drive Storage Integration (Optional)
DRIVE_FOLDER_ID=your_drive_folder_id
# AI & LLM (OpenRouter / Gemini)
OPENROUTER_API_KEY=your_openrouter_api_key_here
OCR_TEXT_MODEL=google/gemini-2.0-flash-001
OCR_VISION_MODEL=google/gemini-2.0-flash-001
OCR_FALLBACK_MODEL=google/gemini-flash-1.5-8b
TESSERACT_LANG=eng
CHAT_MODEL=google/gemini-2.0-flash-001
+93
View File
@@ -0,0 +1,93 @@
# 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.