How jack8084/backend works
This is a small Express API for accepting portfolio contact messages and saving them as user records. The principal workflow is a client POSTing to /message, the API delegating persistence, and a success or failure response returning to the client. Startup connects to MongoDB, while the root route provides a health check. The README is empty, so the map reflects only the supplied tree and source excerpts; no validation or additional product capabilities are assumed.
Main entry points: main.js Express API · db.js DB connector · saveuser.js Save user · schema.js User model
Components 6
API runtime
- Express API
main.js
Persistence
- DB connector
configs/db.js - Save user
functions/saveuser.js - User model
models/schema.js
Other components
- API client
- MongoDB
Connections 7
- API client → Express API: sends requests
- Express API → API client: returns response
- Express API → DB connector: connects at startup
- Express API → Save user: delegates message
- Save user → User model: creates and saves
- User model → MongoDB: persists record
- DB connector → MongoDB: opens connection