Storyboard-based platform for language documentation, learning, and audio-rich scenario exploration.
API docs ·
Quick start ·
Project report (FR) ·
Creation guide (FR)
- About
- Tech stack
- Repository layout
- Quick start
- Local setup in detail
- Tests and build
- Configuration
- Database
- Deploying on Supabase
- API documentation
- Contributing
Vignette lets people build storyboards (scenarios made of scene images, audio, transcriptions and translations) to document and teach low-resource languages. It targets children learning a language, communities sharing content, and linguists.
| Author | Titouan JOHANNY |
| Contributors | Ryan Sari, Léa Hemidj, Ariane Laverrière, Marina Traore (all) |
| Context | IFT-3150, Université de Montréal (2026), supervised by Louis-Edouard LAFONTANT |
| Universities | Université de Montréal · Avignon Université |
| License | GPL-3.0 |
| Part | Technology |
|---|---|
| Backend | Java 21, Spring Boot, Spring Security (JWT), Spring Data JPA, Flyway |
| Frontend | Vue 3, Vite, Vitest, Playwright |
| Database | PostgreSQL everywhere: local, tests (Testcontainers), production (Supabase) |
| Language data | Glottolog, imported by a Python worker |
| API docs | springdoc-openapi (Swagger UI), published on GitHub Pages |
.
├── src/main/java/org/titiplex/ Spring Boot backend ─ each folder has its own README
│ ├── api/ REST controllers, DTOs, Swagger annotations
│ ├── service/ business rules, access checks, file storage
│ ├── persistence/ JPA entities and repositories
│ ├── config/ security, JWT, OpenAPI, properties
│ ├── bootstrap/ startup tasks
│ └── util/ shared helpers
├── src/main/resources/
│ ├── db/migration/ Flyway migrations (the database schema)
│ └── application*.properties configuration per profile
├── vite/ Vue frontend
├── scripts/glottolog_worker/ Python worker: Glottolog import and updates
├── docs/ static API docs (GitHub Pages) and guides
└── pom.xml Maven build
Start with src/main/java/org/titiplex/README.md for the
backend architecture.
Needs Java 21+, Maven 3.9+, Node.js 22+, Python 3 and PostgreSQL 15+. From the project root:
# once
pip3 install -r scripts/glottolog_worker/requirements.txt
(cd vite && npm install)
psql postgres -c "CREATE ROLE vignette LOGIN SUPERUSER;" -c "CREATE DATABASE vignette OWNER vignette;"
# every time: two terminals
mvn spring-boot:run -Dspring-boot.run.profiles=dev # terminal A: API on :8081
cd vite && npm run dev # terminal B: site on :5173Open http://localhost:5173 and log in with admin / admin12345.
On the first start, Flyway creates the tables and, if the language table is empty, the backend runs the Glottolog import (a few minutes).
| Tool | Version | Used for |
|---|---|---|
| Java | 21+ (23 is fine) | backend |
| Maven | 3.9+ | backend build |
| Node.js + npm | 22+ | frontend |
| Python | 3 | Glottolog import |
| PostgreSQL | 15+ (Homebrew postgresql@16 or @18 on macOS) |
database |
| Docker | any | backend tests only |
-
Install dependencies
pip3 install -r scripts/glottolog_worker/requirements.txt cd vite && npm install && cd ..
-
Start PostgreSQL, for example
brew services start postgresql@18. -
Create the user and the database
psql postgres
CREATE ROLE vignette LOGIN SUPERUSER; CREATE DATABASE vignette OWNER vignette; \q
already existserrors can be ignored. Check withpsql -U vignette -d vignette -c "SELECT 1;". -
Emails (optional). Notification emails are sent by the Python worker:
cp scripts/glottolog_worker/.env.example scripts/glottolog_worker/.env
In
.env, setGLOTTOLOG_SMTP_USER/GLOTTOLOG_SMTP_FROM(the Gmail account that sends) andGLOTTOLOG_SMTP_PASSWORD(a Gmail App Password, not the account password). Never commit.env.
| Terminal | Command | Result |
|---|---|---|
| A — backend | mvn spring-boot:run -Dspring-boot.run.profiles=dev |
API on http://localhost:8081 (wait for Started Application) |
| B — frontend | cd vite && npm run dev |
site on http://localhost:5173 |
| C — worker (optional) | cd scripts && python3 -m glottolog_worker |
scheduled Glottolog updates |
Useful pages: /languages (map), /admin (admin dashboard), and http://localhost:8081/api/docs (Swagger).
| Setting | Decides |
|---|---|
scripts/glottolog_worker/.env |
the account that sends |
| Admin → Glottolog / Schedule → Notification email | the address that receives |
Test it with cd scripts && python3 -m glottolog_worker.send_test_email --to you@example.com.
The languages map is empty. http://localhost:8081/api/languages/by-country should return a large
JSON. If not, run the import by hand (PostgreSQL must be up), then reload /languages:
cd scripts
PGHOST=localhost PGPORT=5432 PGDATABASE=vignette PGUSER=vignette PGPASSWORD= \
python3 -m glottolog_worker --bootstrapThe backend refuses to start with a Flyway or schema error. See Existing databases.
| What | Command |
|---|---|
| Backend tests (Docker must run) | mvn clean test |
| Frontend tests | cd vite && npm run test:run (end-to-end: npm run e2e) |
| Backend jar | mvn clean package then java -jar target/projet-info.jar --spring.profiles.active=dev |
| Frontend build | cd vite && npm run build (preview: npm run preview) |
How the tests are organized, what each kind checks and how to write one: backend tests · frontend tests.
| Profile | Database | Notes |
|---|---|---|
dev |
PostgreSQL on localhost:5432, database and user vignette, empty password (or DB_PASSWORD) |
port 8081, admin account created at startup, first Glottolog import when empty |
prod |
DB_URL, DB_USERNAME, DB_PASSWORD |
port from PORT (default 8081), pool size DB_POOL_SIZE (default 5) |
| tests | PostgreSQL in Docker (Testcontainers) | nothing to configure |
pgdev is an alias of dev; the former H2 mode no longer exists.
# always
APP_JWT_SECRET=change-me
APP_STORAGE_ROOT=./data/storage # uploaded images and audio
# prod: Supabase session pooler (see "Deploying on Supabase")
DB_URL=jdbc:postgresql://aws-0-<region>.pooler.supabase.com:5432/postgres?sslmode=require
DB_USERNAME=postgres.<project-ref>
DB_PASSWORD=your_password
PORT=8081Any PostgreSQL works the same way, e.g. DB_URL=jdbc:postgresql://localhost:5432/vignette.
The schema is owned by Flyway only: the migrations in
src/main/resources/db/migration. Hibernate only
validates (ddl-auto=validate) and refuses to start when an entity and its table disagree.
To change the schema: change the entity, add a new V<next>__<description>.sql, run mvn test.
Never edit a migration that already ran on a shared database.
Upgrading an older database (Hibernate-managed, or created with the first V1): see
Existing databases.
Supabase is hosted PostgreSQL: the prod profile only needs the connection settings.
-
In the Supabase project, open Connect and copy the Session pooler parameters (port
5432). Do not use the transaction pooler (port6543): it breaks JDBC prepared statements and the worker'sLISTEN/NOTIFY. The direct connection is IPv6-only unless you add the IPv4 option. -
(Optional) Copy your local data into the still empty Supabase database. Start the local backend once with the current code first, so the dump carries the Flyway history:
pg_dump -U vignette --no-owner --no-privileges vignette \ | psql "postgresql://postgres.<project-ref>:<password>@aws-0-<region>.pooler.supabase.com:5432/postgres?sslmode=require"
-
Start the backend with the
prodprofile and the environment variables. On an empty database, Flyway creates the schema. -
Give the Python worker the same database in its
.env:DATABASE_URL=postgresql://postgres.<project-ref>:<password>@aws-0-<region>.pooler.supabase.com:5432/postgres?sslmode=require
-
Turn the Supabase Data API off (or remove
publicfrom its exposed schemas). Spring is the only client; otherwise tables such asuser_can be read with the project'sanonkey, as they have no row-level security. -
Make every schema change through Flyway: no edits in the Supabase dashboard, no Supabase CLI migrations.
Uploaded files are not in the database: they stay under APP_STORAGE_ROOT, back them up separately.
| Where | URL |
|---|---|
| Local Swagger UI | http://localhost:8081/api/docs |
| Local OpenAPI JSON | http://localhost:8081/api/docs/openapi |
| Published | https://titiplex.github.io/vignette/ |
A GitHub Actions workflow builds the backend, exports the OpenAPI spec and publishes docs/ to
GitHub Pages. See API_DOCUMENTATION.md.
- Fork the repository and create a branch.
- Make focused changes, with tests.
- Open a pull request.
Ideas for later: richer admin tooling, Docker-based local setup, seeded demo content, better contributor onboarding.
- Contributors: CONTRIBUTORS.md
- Security issues: SECURITY.md
- API documentation: API_DOCUMENTATION.md
- Code of conduct: CODE_OF_CONDUCT.md
- License: GPL-3.0