ai-forgot-these-cards Help

Architecture

Ai Forgot These Cards is built as a SPA + backend + database, with optional AI integration.

Application architecture

  • Frontend: React/Vite SPA

  • Backend: Spring Boot application packaged as a WAR and run on Tomcat

  • Persistence: JPA/Hibernate, backed by Postgres (default) or SQLite single-file mode

  • AI (optional): Spring AI ChatClient talking to an OpenAI-compatible API (hosted provider or llama.cpp)

Backend
Frontend
Database - choose one
AI provider - optional
HTTP
DB_VENDOR=postgres
DB_VENDOR=sqlite
Chat requests optional
Hosted
Local/remote
Maven deps optional
Java Spring Boot
Tomcat exec WAR
JPA/Hibernate
Sonatype Nexus - optional build-time cache
Spring AI ChatClient
OpenAI-compatible API
OpenAI hosted
Llama.cpp server
OpenAI-compatible
PostgreSQL
SQLite single-file DB
React SPA

Deployment topologies

  • Core stack: app + database (app serves UI + API)

  • Full stack: Nginx serves the SPA and proxies /api to the app

  • SQLite variants: replace Postgres with a mounted SQLite .db file

See: Deployment.md

Last modified: 16 December 2025