DHIS2 and SIDAInfo matching sitest
# SIDAInfo Matching
Laravel 11 application that manages the mapping between **SIDAInfo facility codes** and **DHIS2 organisation unit IDs**. It exposes a web UI for CRUD operations and a REST API endpoint consumed by OpenFn.
---
## Stack
| Component | Detail |
|-------------|-------------------------------|
| PHP | 8.2 |
| Framework | Laravel 11 |
| Database | MySQL 8.0 |
| Web server | Apache (mod_rewrite) |
| Runtime | Docker |
---
## Quick start
```bash
# First-time setup (build image, start containers)
make install
# Import the initial dataset
make import
```
| Service | URL / address |
|--------------|------------------------------------------------------|
| Application |
localhost |
| phpMyAdmin |
localhost |
| MySQL | `localhost:3307` — user `matching_user` / `matching_pass` |
---
## Make targets
```
Installation & startup
install First install: build + full startup
build Rebuild image without cache
start Start containers (no rebuild)
stop Stop containers
restart Restart containers
Logs & monitoring
logs Tail all service logs
logs-app Tail app container only
logs-db Tail db container only
status Show container status
Shells & consoles
shell Bash shell in app container
db-shell MySQL shell in db container
tinker Laravel Tinker
Database
migrate Run Laravel migrations
fresh Reset DB, re-run migrations, re-import SQL dump
import Import database/matchings.sql into the DB
Laravel utilities
cache-clear Clear all Laravel caches
routes List all routes
test Run PHPUnit tests
Cleanup
clean Stop and remove contain …