How ivanpavlovic-web/piaiws_taskmanager works
PIAiWS Task Manager is a browser-based task-management SPA backed by a PHP JSON API and SQLite. The principal workflow is: a user registers or logs in, manages categories and tasks, and views tasks filtered by category, status, or title; the API enforces session authentication and user ownership before returning results. The frontend responsibilities share app.js, while PHP routing dispatches to separate user, category, and task controllers. The excerpts show those controller and database interactions; frontend details beyond the sampled handlers are based on the README and file tree.
Main entry points: routes.php Route dispatcher · db.php Database access · index.php API entry · UserController.php User accounts
Components 11
Browser app
- SPA shell
index.html - App interactions
app.js
API routing
- API entry
api/index.php - Route dispatcher
api/routes.php
Domain services
- User accounts
api/controllers/UserController.php - Category CRUD
api/controllers/CategoryController.php - Task CRUD and filters
api/controllers/TaskController.php
Session and storage
- Session auth
api/auth.php - Database access
api/db.php - SQLite data
database.sqlite
Other components
- User
Connections 14
- User → SPA shell: uses
- SPA shell → App interactions: loads
- App interactions → API entry: Fetch requests
- API entry → Session auth: starts session
- API entry → Route dispatcher: dispatches
- Route dispatcher → Session auth: requires auth
- Route dispatcher → User accounts: dispatches account
- Route dispatcher → Category CRUD: dispatches category
- Route dispatcher → Task CRUD and filters: dispatches task
- User accounts → Database access: queries
- Category CRUD → Database access: queries
- Task CRUD and filters → Database access: queries
- Database access → SQLite data: reads and writes
- User accounts → Session auth: sets or clears session