How abdelrhmanahmeda3/crud-js works
crud-js is a small browser-based product CRUD app. Users enter and validate product details, then add, edit, or delete records; the app renders the list and supports name search. Product records live in an in-memory array and are persisted in browser localStorage. These responsibilities are implemented together in js/main.js. The README is only a title, and index.html was not sampled, so its markup and its relationship to the script are not shown.
Main entry points: main.js CRUD handlers
Components 6
Other components
- User
- CRUD handlers
js/main.js - Form validation
js/main.js - Product records
js/main.js - List and search
js/main.js - Local storage
js/main.js
Connections 8
- User → CRUD handlers: triggers actions
js/main.js - User → Form validation: enters details
js/main.js - CRUD handlers → Product records: mutates records
js/main.js - CRUD handlers → List and search: renders list
js/main.js - CRUD handlers → Local storage: saves records
js/main.js - Local storage → Product records: loads records
js/main.js - List and search → Product records: reads records
js/main.js - User → List and search: searches names
js/main.js