Commit Graph

63 Commits

Author SHA1 Message Date
1641b931e8 refactor: Migrate to API endpoint and use real DB connection
This commit shifts the application's data fetching mechanism from local storage mocks to a dedicated API endpoint. It also refactors the database connection logic to utilize a connection pool for improved performance and scalability.

Key changes include:
- Disabling `FORCE_LOCAL_DB` in `mockDb.ts` and implementing a generic `request` function for API calls.
- Centralizing authentication headers in `mockDb.ts`.
- Modifying `server/db.js` to use `pg` and `mysql2/promise` pools and a unified `executeQuery` function.
- Updating `server/server.js` to use the database pool for queries.
- Configuring Vite's development server to proxy API requests to the backend.
2025-12-07 01:45:12 +01:00
3f954c65b1 feat: Introduce multi-condo management and notices
This commit refactors the application to support managing multiple condominiums.

Key changes include:
- Introduction of `Condo` and `Notice` data types.
- Implementation of multi-condo selection and management, including active condo context.
- Addition of a notice system to inform users about important updates or events within a condo.
- Styling adjustments to ensure better visibility of form elements.
- Mock database updates to accommodate new entities and features.
2025-12-07 01:37:19 +01:00
fdd912a932 Update .dockerignore 2025-12-07 00:30:50 +01:00
a443bb1a95 Update nginx.conf 2025-12-07 00:30:32 +01:00
f575d9973a Update Dockerfile 2025-12-07 00:30:14 +01:00
280646f9dd Update Dockerfile 2025-12-07 00:29:51 +01:00
26fc451871 feat: Add email configuration and alert system
Introduces SMTP configuration settings and alert definitions to enable automated email notifications.
This includes new types for `SmtpConfig` and `AlertDefinition`, and integrates these into the settings page and mock database.
Adds styling for select elements and scrollbar hiding in the main HTML.
Updates mock database logic to potentially support local development without a backend.
2025-12-06 23:01:02 +01:00
89f4c9946b Update .dockerignore 2025-12-06 22:22:35 +01:00
f429bdc441 Update nginx.conf 2025-12-06 22:22:02 +01:00
7311577d53 Update Dockerfile 2025-12-06 22:21:40 +01:00
703d8c9563 Update Dockerfile 2025-12-06 22:21:05 +01:00
79e249b638 feat: Setup project with Vite and React
Initializes the Condopay frontend project using Vite, React, and TypeScript. Includes basic project structure, dependencies, and configuration for Tailwind CSS and React Router.
2025-12-06 18:55:48 +01:00
559c340f22 Initial commit 2025-12-06 18:51:20 +01:00