Taqa Mate is an energy efficiency recommendation app that helps users identify potential energy-saving opportunities for their buildings.
The application is structured as follows:
- client/: React frontend built with Vite and shadcn UI components
- server/: Express.js backend with API endpoints
- shared/: Common code and types shared between frontend and backend
- app/: Next.js app structure (in development)
The application uses PostgreSQL with Drizzle ORM for data modeling:
users
: User authentication and profilesbuildings
: Building information submitted by usersmonthlyConsumption
: Monthly energy consumption datarecommendations
: Energy-saving recommendationsbuildingRecommendations
: Junction table linking buildings to recommendations
- POST /api/recommendations: Submit building data and get personalized recommendations
- GET /api/buildings/:id/recommendations: Get recommendations for a specific building
- The application uses Drizzle ORM with PostgreSQL for database operations
- API endpoints are defined in server/routes.ts
- Database schema is defined in shared/schema.ts
- Storage interface for database operations is in server/storage.ts