How ecg301997/arquitecturasoa works
Project type and purpose
• This is a Node.js Service-Oriented Architecture (SOA) application composed of five standalone microservices (auth, billing, clients, inventory, orders).
• Each service exposes a REST API via Express, persists data in its own MongoDB (via Mongoose), and uses dotenv for configuration.
File structure
• Top-level directories:
• auth, billing, clients, inventory, orders – each is a self-contained service.
• Inside each:
– app.js: sets up Express middleware and routes
– server.js: bootstraps the HTTP server and DB connection
– config/db.js: MongoDB connection logic
– controllers/: request handlers
– models/: Mongoose schemas
– routes/: route definitions
– .env.example: env-var template
• No shared library; each service is individually deployable.
README
• Confirms the SOA pattern and lists the responsibilities of each service.
• No API gateway or message bus is currently in place – services communicate over HTTP.