How peera-exe/account-workshop works
Account Workshop is a small browser-based account-management app. Users register, log in, browse or search members, change passwords, and delete accounts. The browser sends API requests to the Express server, which validates requests, hashes or checks passwords, and reads or updates MongoDB. Static page markup is present in the tree, but its contents were not sampled, so the diagram focuses on the shown client and server behavior. All shown links are supported by app.js or public/script.js.
Main entry points: app.js Express routes · script.js Account interface
Components 6
Browser client
- Account interface
public/script.js
Account API
- Express routes
app.js - Password hashing
app.js
Account storage
- Users collection
app.js
Other components
- Member
- MongoDB
Connections 7
- Member → Account interface: uses
public/script.js - Account interface → Express routes: sends requests
public/script.js - Express routes → Account interface: returns responses
app.js - Express routes → Password hashing: hashes and checks
app.js - Express routes → Users collection: reads and writes
app.js - Express routes → MongoDB: connects and indexes
app.js - Users collection → MongoDB: stores accounts
app.js