How ameerkalash/tarmeez-api-js-project works
This is a browser-based social-posts client backed by the Tarmeez Academy API. Users browse a paginated feed, open posts to read and submit comments, and view user profiles and their posts; authenticated users can register, log in, and create, edit, or delete posts. The JavaScript directly renders page content and uses browser local storage for login state. Source excerpts establish the API and helper calls shown below; HTML wiring and other unsampled behavior are not verified.
Main entry points: mainLogic.js Auth and post actions · main.js Feed loading · postDerails.js Post and comments · profile.js Profile and posts
Components 10
Social pages
- Feed page
index.html - Post detail page
postDetails.html - Profile page
profile.html
Post features
- Feed loading
main.js - Post and comments
postDerails.js - Profile and posts
profile.js
Identity and state
- Auth and post actions
mainLogic.js
Other components
- Visitor
- Tarmeez API
- Browser local storage
Connections 14
- Visitor → Feed page: opens
- Visitor → Post detail page: opens
- Visitor → Profile page: opens
- Feed loading → Tarmeez API: fetches feed
main.js - Feed loading → Auth and post actions: uses helpers
main.js - Post and comments → Tarmeez API: fetches post
postDerails.js - Post and comments → Tarmeez API: submits comment
postDerails.js - Post and comments → Auth and post actions: uses helpers
postDerails.js - Profile and posts → Tarmeez API: fetches profile
profile.js - Profile and posts → Tarmeez API: fetches posts
profile.js - Profile and posts → Auth and post actions: uses helpers
profile.js - Auth and post actions → Tarmeez API: auth and post requests
mainLogic.js - Auth and post actions → Browser local storage: reads and writes
mainLogic.js - Feed loading → Browser local storage: stores page metadata
main.js