Official web application for the Radioterapia Río Cuarto medical center. This Single Page Application (SPA) provides patient information and institutional services using a modern technical stack.
- Framework: Angular 17.3.7.
- UI Components: PrimeNG 17.12.0 with PrimeFlex and PrimeIcons.
- Maps Integration: Leaflet 1.9.4 for location services.
- Contact Services: EmailJS Browser 4.4.1.
- Security: Integrated reCAPTCHA support.
- Automation: CI/CD pipeline via GitHub Actions for FTP deployment.
- Clone the repository:
git clone https://github.com/your-username/cpr.git - Install dependencies:
npm install. - Run development server:
ng serve --openThe application will be available athttp://localhost:4200/.
This project uses an automated deployment workflow. Any push to the main branch triggers the build and upload process to the production server.
- Base Href: The production build is configured to run from the root directory.
- Build Command:
ng build --configuration production --base-href / - Output Directory: The build artifacts are stored in
dist/cpr.
To maintain consistency, images should be referenced using the following format:
<img id="logo" src="assets/images/CPR-logo-green.svg" alt="CPR Logo">- Server Routing: Since this is an SPA, server-side routing is handled by the
.htaccessfile in the root directory to prevent 404 errors on page refresh. - Asset Registration: All static files like
.htaccess,sitemap.xml, androbots.txtare registered inangular.jsonto be included in every production build. - FTP Secrets: Deployment credentials (server, username, and password) are managed as GitHub Repository Secrets for security.