How cpgabo/final-proyect-firstsem-backend works
Revista Digital is a small Express REST backend for serving and creating articles. The workflow is an HTTP request through CORS/JSON middleware to article routes, which read or update an in-memory article collection and return JSON; unmatched routes and errors receive dedicated responses. The README documents list, single-article lookup, and creation. The sampled source shows these behaviors in one file; no persistent database or separate domain modules are present.
Main entry points: index.js CORS and JSON
Components 6
HTTP API
- CORS and JSON
index.js - Article routes
index.js - 404 and errors
index.js - HTTP server
index.js
Article Runtime
- Article collection
index.js
Other components
- API client
Connections 7
- API client → HTTP server: sends requests
README.md - HTTP server → CORS and JSON: dispatches through
index.js - CORS and JSON → Article routes: passes requests
index.js - Article routes → Article collection: reads and updates
index.js - Article routes → API client: returns JSON
index.js - CORS and JSON → 404 and errors: unmatched requests
index.js - HTTP server → 404 and errors: handles errors
index.js