How wanting2500730c/dvops-recipemanager works
This is a small Express recipe manager. Users can create recipes with photos, browse/search/filter and inspect recipes, edit them, or select and delete them. The server exposes those operations and stores recipe records in a JSON file, with uploaded images served from the public directory. The supplied source shows the route wiring and implementation for all four operations; HTML page structure and the delete handler’s detailed behavior are represented only where supported by the tree or excerpts.
Main entry points: index.js Express routes · XIAOTONG.js Create and validate · recipes.json Recipe JSON · Jansen-Utils.js Update recipe
Components 13
Browser experience
- Browse and search
public/js/wanting.js - Create recipe
public/js/xiaotong.js - Edit recipe
public/js/jansen.js - Delete selection
public/js/vasu.js
HTTP application
- Express routes
index.js
Recipe operations
- Create and validate
utils/XIAOTONG.js - Read recipes
utils/WantingUtil.js - Update recipe
utils/Jansen-Utils.js - Delete recipe
utils/vasu-utils.js
File storage
- Recipe JSON
utils/recipes.json - Initial recipe data
utils/recipes.template.json - Uploaded photos
public/uploads
Other components
- Recipe user
Connections 21
- Recipe user → Browse and search: browses
public/js/wanting.js - Recipe user → Create recipe: enters recipe
public/js/xiaotong.js - Recipe user → Edit recipe: edits recipe
public/js/jansen.js - Recipe user → Delete selection: selects deletion
public/js/vasu.js - Browse and search → Express routes: requests recipes
public/js/wanting.js - Create recipe → Express routes: posts recipe
public/js/xiaotong.js - Edit recipe → Express routes: loads and updates
public/js/jansen.js - Delete selection → Express routes: deletes selection
public/js/vasu.js - Express routes → Create and validate: routes create
index.js - Express routes → Read recipes: routes reads
index.js - Express routes → Update recipe: routes update
index.js - Express routes → Delete recipe: routes delete
index.js - Express routes → Browse and search: serves static files
index.js - Create and validate → Recipe JSON: appends recipe
utils/XIAOTONG.js - Create and validate → Initial recipe data: loads fallback
utils/XIAOTONG.js - Create and validate → Uploaded photos: writes photo
utils/XIAOTONG.js - Read recipes → Recipe JSON: reads recipes
utils/WantingUtil.js - Update recipe → Recipe JSON: reads and writes
utils/Jansen-Utils.js - Update recipe → Uploaded photos: replaces photo
utils/Jansen-Utils.js - Delete recipe → Recipe JSON: removes recipe
utils/vasu-utils.js - Delete recipe → Uploaded photos: removes photo
utils/vasu-utils.js