How horinezachary/shoppinglist works
Lori’s List is a full-stack shopping-list app with browser pages and a JSON API for mobile apps. People sign in, manage multiple named and colored lists, add or check off items, and share lists; the API also supports device tokens and live change notifications. The web server renders the site and uses MySQL, while the API is split between route adaptation and list/account rules. The README documents email-based sharing and reset links. Several implementation details are unsampled, so the graph omits uncertain connections rather than inferring them.
Main entry points: server.js Web routes · api.js API operations · apiRouter.js API route adapter · sqlConfig.js MySQL access
Components 18
Web experience
- Web routes
server.js - Page templates
views - App link association
lib/appLinks.js
Mobile API
- API route adapter
lib/apiRouter.js - API operations
lib/api.js - Live change events
lib/apiEvents.js - Retry protection
lib/idempotency.js - Input validation
lib/validate.js
Accounts and access
- Device tokens
lib/apiTokens.js - Account deletion
lib/accounts.js - Rate limiting
lib/rateLimit.js - Password handling
lib/passwords.js
Persistence
- MySQL access
sqlConfig.js - Schema migrations
lib/migrations.js - Database schema
migrations
Other components
- Browser user
- Mobile app
- Email service
Connections 19
- Browser user → Web routes: uses pages
README.md - Web routes → Page templates: renders pages
server.js - Web routes → MySQL access: starts pool
server.js - Web routes → App link association: mounts links
server.js - Mobile app → API route adapter: calls API
README.md - API route adapter → API operations: dispatches routes
lib/apiRouter.js - API route adapter → Live change events: handles streams
lib/apiRouter.js - API route adapter → Retry protection: guards writes
lib/apiRouter.js - Live change events → API operations: checks changes
lib/apiEvents.js - API operations → Input validation: validates input
lib/api.js - API operations → Account deletion: deletes accounts
lib/api.js - API operations → Device tokens: authenticates tokens
lib/api.js - API operations → MySQL access: queries data
- Web routes → Account deletion: deletes accounts
server.js - Web routes → Password handling: checks passwords
server.js - Web routes → Rate limiting: limits sign-in
server.js - Web routes → Email service: sends messages
- Schema migrations → Database schema: applies changes
- MySQL access → Database schema: stores records