How naf7111/midinfo works
MedInfo is a lightweight medical-blog CMS: staff manage categories and publish posts, while readers browse, search, and view posts. The documented browser pages are served as static files, and the API handles category and post operations backed by SQLite. The graph follows the explicit routes in server.js; app.js contains a second, overlapping API implementation, and the supplied tree does not include the bin/www entry referenced by the start script. UI behavior and the documented editor/image features are not verified in sampled page source.
Main entry points: admin.html Admin page · index.html Post listing · server.js Post endpoints · post.html Post detail
Components 12
Web experience
- Admin page
public/admin.html - Post listing
public/index.html - Post detail
public/post.html - Browse and search
public/index.html - Post editor
public/admin.html - Category management
public/admin.html
API operations
- Express API
server.js - Category endpoints
server.js - Post endpoints
server.js
Persistence
- SQLite database
database.js
Other components
- Staff
- Readers
Connections 14
- Staff → Admin page: uses
- Readers → Post listing: uses
- Readers → Post detail: opens
- Express API → Admin page: serves static
- Express API → Post listing: serves static
- Express API → Post detail: serves static
- Admin page → Category endpoints: requests
- Admin page → Post endpoints: requests
- Post listing → Post endpoints: requests
- Post detail → Post endpoints: requests
- Category endpoints → SQLite database: reads/writes
- Post endpoints → SQLite database: reads/writes
- Post editor → Category management: manages
- Post listing → Browse and search: supports