Server running — https://offlinesync.techparse.fr ·
Laravel 12.56.0 ·
SQLite ·
3 user(s) ·
13 task(s)
Test client (simulated mobile)
Open Todo client
Email
test@example.com
Password
password
Features demonstrated
Syncable trait on the Task model
- Automatic queue (create / update / delete)
- Push sync
POST /api/sync/push
- Pull sync
GET /api/sync/pull/tasks
- Conflict detection
- Sanctum authentication (Bearer token)
- Artisan command
sync:status
Available API routes
- POST/api/register
- POST/api/login
- GET/api/tasks — list tasks (auth required)
- POST/api/tasks — create task → Syncable queue
- PUT/api/tasks/{id} — update → Syncable queue
- DELETE/api/tasks/{id} — delete → Syncable queue
- POST/api/sync/push — push local changes to server
- GET/api/sync/pull/tasks — fetch server changes
- GET/api/sync/status — server sync status
- GET/api/sync/ping — connectivity check
Start: php artisan serve inside demo/
·
php artisan sync:status to inspect the queue