Installation guide
This guide explains how to install and run Ai Forgot These Cards locally.
The default workflow is containerized: building the backend WAR and the frontend SPA happens inside Docker images, so you typically do not need a local JDK, Maven, or Node.js.
Installation types
Type | Best for | Command | Default URL |
|---|---|---|---|
Core stack (app + DB) | Most users / simplest |
| |
Full stack (Nginx + app + DB) | Reverse-proxy parity |
| |
SQLite mode (no Postgres) | Simplest runtime |
| http://localhost:8086 or :8080 |
Standalone (no containers) | Advanced |
|
Installing from a release (no build)
If you don’t want to clone/build the repo, use one of these options:
GitHub Releases (WAR artifacts): Releases.md
Prebuilt container images (GHCR): Container-images.md
System requirements
Minimum requirements:
Git
GNU Make
A container runtime (Docker or compatible)
Optional requirements:
PostgreSQL client tools (
pg_dump,pg_restore,psql) if you use the local Postgres backup targets (see Database.md)
Before you begin
Clone the repository:
Initialize submodules (frontend and llama.cpp are included as submodules):
Create a
.envfile:
At minimum, ensure your database credentials and DB_URL are correct for your environment.
Install and run (recommended: core stack)
This runs the app + Postgres DB. The app serves both the UI and /api.
Build and deploy:
Open the app:
UI + API: http://localhost:8080
API base: http://localhost:8080/api
Sign in with the default admin:
Username:
cardsPassword:
cards
(Recommended) Create a normal user:
Go to Admin and add a new user with role
USER.
Verify installation
Use one (or more) of the following checks:
Open the UI page in your browser
Open Swagger UI:
Core stack: http://localhost:8080/swagger-ui/index.html
Full stack: http://localhost:8086/api/swagger-ui/index.html
Open Actuator (core stack example): http://localhost:8080/actuator
Optional: enable AI features
Hosted provider (easy mode): set
SPRING_AI_OPENAI_API_KEYin.envLocal mode: run llama.cpp in OpenAI-compatible server mode and set
SPRING_AI_OPENAI_CHAT_BASE_URL
Full details: AI-Integration.md
Uninstall / clean reset
To remove the containers:
To also remove the Postgres volume and Docker network (destructive):
Troubleshooting
If things don’t work after a successful make build-deploy-*, start here:
make tail-tomcat-logs