How maaz-319/yapp_web_project works
Yapp is a small Twitter-style social app. A signed-in user works through browser pages to an API operation; the PHP endpoints authenticate and validate requests, query or update MySQL, and return JSON for the interface. The graph keeps account access, social actions, and administration distinct, with shared session/database support and tweet presentation as internal layers. README capabilities establish the product branches; source excerpts and the index support the cited implementation links. Frontend request wiring is not sampled, so those links are left unverified.
Main entry points: common.php API utilities · schema.sql MySQL database · api.js API client · feed.php Home feed
Components 17
Browser interface
- App pages
public/index.html - API client
public/assets/js/api.js - Access pages
public/login.html
Accounts and access
- Login and registration
public/api/auth/login.php - Session and RBAC
src/common.php - Admin accounts
public/api/admin/users.php
Social features
- Home feed
public/api/feed.php - Post management
public/api/tweets.php - Post likes
public/api/tweets/like.php - Profiles and posts
public/api/users.php - People search
public/api/users/search.php - Follow actions
public/api/users/follow.php - Connections lists
public/api/users/followers.php
Shared runtime and data
- Post query and view
src/tweet_helpers.php - MySQL database
database/schema.sql - API utilities
src/common.php
Other components
- User
Connections 26
- User → App pages: uses
README.md - User → Access pages: signs in
README.md - App pages → API client: uses
- Access pages → API client: uses
- API client → Home feed: requests
- API client → Post management: requests
- API client → Login and registration: requests
- Login and registration → API utilities: uses
public/api/auth/login.php - Admin accounts → API utilities: checks access
public/api/admin/users.php - Admin accounts → MySQL database: reads and writes
public/api/admin/users.php - Home feed → API utilities: authenticates
public/api/feed.php - Home feed → MySQL database: reads
public/api/feed.php - Home feed → Post query and view: formats posts
public/api/feed.php - Post management → API utilities: authenticates
public/api/tweets.php - Post management → MySQL database: reads and writes
public/api/tweets.php - Post management → Post query and view: loads and formats
public/api/tweets.php - Post likes → API utilities: authenticates
public/api/tweets/like.php - Post likes → MySQL database: reads and writes
public/api/tweets/like.php - Profiles and posts → API utilities: uses
public/api/users.php - Profiles and posts → MySQL database: reads
public/api/users.php - People search → API utilities: authenticates
public/api/users/search.php - People search → MySQL database: searches
public/api/users/search.php - Follow actions → API utilities: uses
public/api/users/follow.php - Follow actions → MySQL database: reads and writes
- Connections lists → MySQL database: reads
public/api/users/followers.php - API utilities → MySQL database: connects
src/common.php