Commit Graph

6 Commits (main)

Author SHA1 Message Date
Pau Costa Ferrer 94709d86d7 Add Asset table, extend schema for related entities, and update .env setup
- Create `Asset` table with relevant columns and constraints.
- Extend `Organization`, `Building`, `Floor`, `Space`, and `User` tables with new fields referencing `Asset`.
- Add `Reservation` table with foreign key constraints for users and spaces.
- Introduce `.env.example` for environment variable management.
- Update `DOCKER_SETUP.md` with initialization and environment configuration instructions.
2026-03-28 19:26:40 +01:00
Pau Costa Ferrer 7b6750e17d Migrate Prisma seed configuration to `prisma.config.ts` and update API Dockerfile
- Move `prisma.seed` from `package.json` to new `prisma.config.ts`.
- Modify API Dockerfile to include `prisma.config.ts` in the build process.
2026-03-28 19:04:18 +01:00
Pau Costa Ferrer 3a961c09ce Add organization details to schema and update PostgreSQL health check
- Add `language`, `logoId`, and `logoUrl` columns to the `Organization` table with relevant constraints and indexes.
- Update `docker-compose.yml` to support dynamic environment variables in PostgreSQL health check.
2026-03-28 18:54:01 +01:00
Pau Costa Ferrer 95b10a3525 Add health checks for dependent services and automate DB migrations in API Dockerfile
- Configure `healthcheck` for the PostgreSQL service in `docker-compose.yml`.
- Update service dependencies to use `condition: service_healthy` for PostgreSQL.
- Modify API Dockerfile to run `npx prisma migrate deploy` before starting the application.
2026-03-28 18:49:46 +01:00
Pau Costa Ferrer 4bc2454f44 Add Docker deployment support for API and Web services
- Add Dockerfiles for API and Web apps with multi-stage builds.
- Configure `docker-compose.yml` to manage services (Postgres, API, Web, pgAdmin).
- Add `.dockerignore` for optimized builds.
- Include `DOCKER_SETUP.md` for deployment steps and guidance.
2026-03-28 17:39:43 +01:00
Pau Costa Ferrer 1faa0d5c8f Initialize Hot Desking app with web and API services
- Set up SvelteKit for the web interface with Tailwind CSS.
- Build the API using NestJS with Prisma ORM for database interaction.
- Add environment variable management and docker-compose for PostgreSQL and PgAdmin instances.
- Create shared data models for consistent typing across services.
- Establish basic routing and layouts for web and API services.
2026-03-28 00:06:57 +01:00