Skip to content

ericmartinezr/document_ai_gcp

Repository files navigation

Document AI

A Document AI platform featuring a high-performance Angular 21 frontend and a robust FastAPI backend integrated with LangChain.

This project is configured for Google Cloud Platform (GCP) deployment using Cloud Run, Cloud SQL, and Vertex AI.


Technology Stack

Backend

Frontend


Project Structure

  • backend/: FastAPI application (Serverless ready).
  • frontend/: Single Page Application (SPA).
  • cloudbuild.yaml: CI/CD configuration for Google Cloud Build.
  • docs/GCP_DEPLOYMENT.md: Critical deployment instructions.

Deployment

This project is designed to be deployed directly to Google Cloud Platform. Local host is NOT supported.

Follow the GCP Deployment Guide

The deployment architecture consists of:

  1. Backend: Cloud Run Service (Scale-to-Zero).
  2. Frontend: Cloud Run Service (Scale-to-Zero).
  3. API Gateway: To manage traffic and secure the backend.
  4. Database: Cloud SQL (Micro instance).

CI/CD Pipeline

Continuous Integration and Deployment are handled exclusively by Google Cloud Build.

  • Config: cloudbuild.yaml
  • Triggers: Connect your GitHub repository to Cloud Build to automate deployments on push to main.

To run the build manually:

gcloud builds submit --config cloudbuild.yaml

User diagram

User diagram POV


Deploy diagram

Deploy diagram POV

⚠️ Known Limitations

  • Tests: Unit and integration tests are currently disabled in this repository.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.