How miguel-educa/daw-proyecto works
Project type and purpose
• This is a full-stack web application called “Pass Warriors,” a secure password manager with storage, sharing, and random password generation.
• The README and file tree confirm three layers: a PHP-based REST API backend (api/), a relational database schema (db/), and a Vue.js frontend (frontend/).
File structure
• Top level:
• api/ – PHP REST API (entry point index.php, route files, controllers/, models/, schemas/, tools/).
• frontend/ – Vue 3 single-page application (components/, views/, router/, stores/, public/).
• api/controllers and api/models follow an MVC-style organization.
• Configuration/deployment files: example-env, .htaccess, package.json, vite.config.js.
• README.md pointers describe each module.
Key insights from README
• Backend: handles authentication (sessions, 2FA, account recovery), folder/password CRUD, sharing.
• Database: MySQL with tables for users, sessions, passwords, folders, shared_passwords, account_recovery.
• Frontend: Vue.js + Bulma CSS, components for login/register, vault UI, password generator, audit, settings.
Detailed breakdown of API sub-components (optional inset)
• Controllers: Session, User, 2FA, Passwords, Folders, SharedPasswords
• Tools: DB, Encrypt, GoogleAuthenticator, Request/Response, HttpCode, SessionDuration
• Models & Schemas: match each table/entity
• Route files: map HTTP methods to controllers