How bhumikalohiya04-eng/purbiyafoundation_backend works
Purbiya Foundation is a small web-based foundation administration site, served as static pages with an Express API. The principal supported workflow is an administrator logging in, then managing blog posts or events through browser forms and API requests, with records stored in MySQL and uploaded images saved under public/uploads. The tree also shows gallery, team, feedback, slider, and settings pages; their runtime wiring is not present in the sampled source, so they are represented without inferred API links.
Main entry points: server.js Static site and API · db.js Database connection · index.html Login page · login.js Login client
Components 18
Admin interface
- Login page
public/index.html - Login client
public/js/login.js - Dashboard
public/dashboard.html - Blog management
public/blog.html - Event management
public/event.html - Password page
public/change-password.html - Gallery page
public/gallery.html - Team page
public/team.html - Feedback page
public/feedback.html - Slider page
public/slider.html - Settings page
public/setting.html
API and access
- Static site and API
server.js
Content management
- Blog client
public/js/blog.js - Event client
public/js/events.js
Persistence
- Database connection
db.js - MySQL database
- Uploaded media
public/uploads
Other components
- Administrator
Connections 20
- Administrator → Login page: opens
- Login page → Login client: runs
- Login client → Static site and API: posts credentials
- Static site and API → Database connection: queries
- Database connection → MySQL database: connects
- Static site and API → Dashboard: serves
- Administrator → Blog management: manages posts
- Blog management → Blog client: runs
- Blog client → Static site and API: requests blog API
- Static site and API → Database connection: reads and writes
- Static site and API → Uploaded media: stores images
- Administrator → Event management: manages events
- Event management → Event client: runs
- Event client → Static site and API: requests event API
- Static site and API → Password page: serves
- Administrator → Gallery page: opens
- Administrator → Team page: opens
- Administrator → Feedback page: opens
- Administrator → Slider page: opens
- Administrator → Settings page: opens