How jonnathitq/clinicaproyectofinal works
Project Type and Purpose
• This is a full-stack, server-side-rendered (SSR) web application for a dental clinic (“ClinicaDental”).
• Frontend: Angular 20 application (with Universal for SSR).
• Backend: Node.js/Express REST API serving appointment scheduling, user (admin/doctor/paciente) management, availability, patient history, and services.
• Database: MongoDB (via Mongoose models in backend/models).
File-Structure Analysis
• Top-level files: angular.json, package.json (workspace config), README.md.
• “backend” directory:
– config/db.js – MongoDB connection setup
– models/*.js – Mongoose schemas (admin, doctor, paciente, citas, disponibilidad, historial, servicios)
– routes/*.js – Express route modules, all prefixed “/api/…” in server.js
– server.js – boots Express API server on configurable port
• “src” directory: Angular application
– src/app – core client code (components, pages, module UI, routing, CSS/HTML/TS)
– src/main.ts & src/main.server.ts – Angular entry points for client and SSR
– src/server.ts – Express wrapper that serves Angular Universal + static assets
• “public” – static assets served by SSR/Express
• tsconfig*.json – TypeScript and spec/test configs
• test.css, test.html – likely scratch files
Key README Insights
• Angular CLI scaffolding & dev server commands (ng serve, ng build).