Skip to content
matou-collectivePublic

About

The community app to support contributor coordination of the MĀTOU ecosystem.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Matou App

Frontend and backend for the Matou Indigenous Identity Protocol.

Prerequisites

  • Go 1.21+ (backend)
  • Node.js 18+ and pnpm (frontend)
  • matou-infrastructure repo cloned as a sibling directory (for local infrastructure)

Repository Structure

matou-app/
├── frontend/          # Quasar/Vue.js + Electron app
├── backend/           # Go API server
└── README.md

Quick Start

1. Clone repos side by side

git clone <matou-infrastructure-url> matou-infrastructure
git clone <matou-app-url> matou-app

2. Start infrastructure

cd matou-infrastructure
make up
make health

3. Run the backend

cd matou-app/backend
cp config/client-host.yml config/client.yml   # Copy any-sync client config
go build ./cmd/server
./bin/server

The backend reads config/client.yml for any-sync connection settings by default. Override with the MATOU_ANYSYNC_CONFIG env var to point elsewhere.

4. Run the frontend

cd matou-app/frontend
pnpm install
pnpm dev           # Web dev server
# or
pnpm dev:electron  # Electron dev mode

Testing

Unit tests (no external dependencies)

cd backend
make test

Integration tests (requires infrastructure)

Integration tests need the infrastructure running. Set the env vars pointing to your matou-infrastructure clone:

export MATOU_ANYSYNC_INFRA_DIR=../../matou-infrastructure/any-sync
export MATOU_KERI_INFRA_DIR=../../matou-infrastructure/keri

cd backend
make test-integration

Or use the Makefile testnet targets (defaults to sibling matou-infrastructure dir):

cd backend
make testnet-up          # Start test network
make test-integration    # Run integration tests
make testnet-down        # Stop test network

Override the infrastructure location:

make testnet-up ANYSYNC_INFRA_DIR=/path/to/matou-infrastructure/any-sync

Frontend E2E tests

cd frontend
pnpm test:e2e

Remote Infrastructure

The backend and frontend connect to infrastructure entirely over the network. To use a remote infrastructure server:

  1. Backend: Edit backend/config/client.yml to replace 127.0.0.1 addresses with the remote server's address
  2. Frontend: Set VITE_KERIA_ADMIN_URL, VITE_KERIA_BOOT_URL, VITE_KERIA_CESR_URL in frontend/.env to point to the remote server

Deployment

See docs/manual-deployment.md for instructions on building and releasing the desktop app for Linux, macOS, and Windows from your own machine

See docs/automated-deployment.md for instructions on building and releasing automatically using GitHub workflows.

See docs/RELEASE_OBSERVABILITY.md to answer "did the build for tag vX.Y.Z run, and where?" — where release builds actually run and how to check them.

Mobile (Android)

The Android app is a Capacitor shell around the same Quasar frontend, with the Go backend embedded via gomobile (it runs in-process and listens on loopback). See docs/mobile/ANDROID.md for the toolchain, build, and emulator notes.

scripts/android/setup-toolchain.sh   # one-time: JDK 21, Android SDK/NDK, gomobile (~2.9 GB in ~/.matou-android)
cd backend && make build-android-aar  # gomobile bind → frontend/src-capacitor/android/app/libs/matou.aar
scripts/android/build-apk.sh          # Quasar Capacitor build → frontend/dist/capacitor/android/apk/debug/app-debug.apk
scripts/android/build-aab.sh          # signed release bundle for Play → frontend/dist/capacitor/android/bundle/release/app-release.aab (docs/mobile/PLAY_STORE.md)

Environment Variables

Variable Description Default
MATOU_ANYSYNC_CONFIG Path to any-sync client config config/client.yml
MATOU_ANYSYNC_INFRA_DIR Path to any-sync infrastructure (for integration tests) -
MATOU_KERI_INFRA_DIR Path to KERI infrastructure (for integration tests) -
MATOU_ENV Environment mode (test for isolated data) -
MATOU_SMTP_HOST SMTP relay host localhost
MATOU_SMTP_PORT SMTP relay port 2525

About

The community app to support contributor coordination of the MĀTOU ecosystem.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages