Case study — 04 / 27
Design Studio + Construction System
Comprehensive Construction Project Management & Portfolio System
- Category
- Systems
- Engagement
- Internship
- Core stack
- Django, React, Gemini AI
Overview
The platform is a full-stack construction management platform that combines portfolio showcasing, blog content management, site diary tracking, and AI-powered chatbot assistance for construction companies and project teams.
The platform is an enterprise-grade construction management solution that streamlines project documentation, client communication, and operational management. The platform features role-based access for admins, site managers, and customers, with real-time collaboration through site diary tracking, weather integration, and automated notifications.
The platform serves as a complete digital ecosystem for construction companies, combining public-facing portfolio and blog systems with internal project management tools. The platform enables site managers to document daily construction activities with material tracking, equipment monitoring, delay documentation, and photo uploads, while clients access secure dashboards to monitor real-time project progress. Admins manage company portfolio showcases, publish blog content with SEO optimization, assign projects to teams, and oversee all operations through comprehensive analytics. The integrated Google Gemini AI chatbot provides instant support, while the notification system keeps all stakeholders informed of project updates, timeline changes, and milestone achievements.
Role & contribution
Reduced administrative workload by 50% by fully digitising construction workflows.
- 01Built an all-in-one construction management system with an admin dashboard, site diary and client portal.
- 02Developed it with Django, PostgreSQL, React and Tailwind, hosted on a VPS.
- 03Integrated a Google Gemini AI chatbot, a weather API and role-based access control (RBAC).
Key features
- 01
JWT-Based Multi-Role Authentication
Secure authentication system with role-based access control for Admins, Site Managers, and Customers with short-lived access tokens and refresh tokens.
- 02
Real-Time Site Diary System
Daily construction diary entries with material tracking, equipment monitoring, labor management, delay documentation, and photo uploads.
- 03
Weather Data Integration
Automatic weather capture based on project location with temperature, humidity, and wind speed tracking.
- 04
Dynamic Portfolio Management
Public-facing project showcase with filtering by year/category, detailed project pages, image galleries, timelines, and like functionality.
- 05
Full-Featured Blog System
Content management with categories, tags, rich text editing, SEO optimization, newsletter integration, and comment moderation.
- 06
AI-Powered Chatbot
Google Gemini AI integration for intelligent assistance with context-aware responses and conversation history.
- 07
Real-Time Toast Notification System
Automated notifications for diary entries, extension requests, project approvals, and status changes with polling for timely updates.
- 08
Comprehensive Admin Dashboard
Analytics, statistics, project assignment to site managers, user management, and system-wide configuration controls.
- 09
Client Progress Monitoring
Secure customer dashboards with real-time project updates, milestone tracking, and diary entry access.
- 10
Extension Request Management
Timeline extension workflow with admin approval/rejection system and automated stakeholder notifications.
Core modules
- Authentication & User Management
- Multi-role JWT authentication system with separate login flows for admins, site managers, and customers. Features OTP verification, email verification, account locking after failed attempts, and activity tracking with online status monitoring.
- Site Diary Management
- Comprehensive daily construction diary system with work description tracking, material/equipment/labor entries, delay documentation with impact levels, weather data integration, photo uploads, milestone tracking, and draft/submit workflow.
- Portfolio Showcase System
- Public-facing project portfolio with category/year filtering, advanced search, project detail pages with image galleries, timeline milestones, statistics, like/unlike functionality, and view count tracking for engagement analytics.
- Blog & Content Management
- Full CMS with rich text editing using React Quill, category/tag organization, SEO meta fields, featured images with gallery support, draft/publish workflow, soft delete, comment system with moderation, and newsletter subscriber management.
- Admin Dashboard & Analytics
- Comprehensive admin interface with project statistics, user analytics, project assignment to site managers with personnel role management, diary entry review, extension request approval, and system-wide configuration controls.
- Customer Dashboard
- Client-facing secure dashboard displaying assigned projects, real-time progress updates, site diary entries with photos, milestone timeline tracking, project statistics, and communication portal for transparency.
- AI Chatbot Assistant
- Google Gemini AI-powered conversational assistant providing context-aware support for platform features, project information, and construction-related queries with persistent chat session history.
- Notification & Communication System
- Real-time toast notification system with 30-second polling for updates, automated notifications for diary entries, extension requests, project assignments, approval/rejection status changes, and notification history tracking.
Architecture
- Architecture Type
- Monolithic Django backend with RESTful API consumed by SPA React frontend. Backend organized as modular Django apps with clear separation of concerns.
- Database Design
- PostgreSQL relational database with normalized schema, strategic denormalization for performance, composite indexes, unique constraints, and soft delete support.
- Security Features
- JWT authentication with short-lived access tokens and refresh tokens, role-based authorization, Django Axes, CORS/CSRF protection, input sanitization, and optional API payload encryption.
- API Design
- RESTful endpoints with consistent JSON responses, JWT Bearer token auth, pagination, query filtering, search, FormData file uploads, and comprehensive error handling.
- Deployment Strategy
- Gunicorn WSGI server, WhiteNoise static serving, Redis caching/sessions, cloud storage providers via environment configuration, and CI/CD-ready deployment setup.
Challenges & solutions
- 01
Real-Time Notification Delivery Without WebSockets
Implemented polling-based notification system with 30-second intervals using React hooks, automatic toast display, and backend API endpoints for pending notifications with read status tracking.
- 02
Complex Multi-Role Authentication & Authorization
Designed JWT-based authentication with separate token obtain endpoints for each role, custom permission decorators, middleware for role verification, and profile-specific login validation with account lock checking.
- 03
Site Diary Data Integrity & Duplicate Prevention
Implemented unique constraints on project and entry dates, duplicate entry detection before creation, draft/submit workflow, and optimized bulk_create for related entries.
- 04
Performance Optimization for Large Datasets
Used select_related() and prefetch_related() to reduce N+1 queries, Redis caching with pattern-based invalidation, indexed frequently queried fields, pagination, and frontend lazy loading.
- 05
Cloud Storage Integration Across Multiple Providers
Created custom Django storage backends for Supabase, MinIO, and S3, with separate storage classes for portfolio, blog, diary, and profile media.
- 06
Field Name Inconsistency Causing 500 Errors
Standardized model field names, added management commands to populate reference data, created fallback defaults in API views, and implemented robust error logging.
Outcomes & impact
Unified Construction Management Platform
Successfully integrated portfolio showcase, blog CMS, site diary tracking, and AI chatbot into a single cohesive platform, reducing the need for multiple disparate tools.
Real-Time Client Transparency
Enabled customers to monitor project progress in real-time with secure dashboards, improving client satisfaction and reducing status inquiry calls.
Comprehensive Security Implementation
Implemented robust security with JWT authentication, role-based access, brute force protection, account locking, API encryption, and CSRF/CORS safeguards.
Performance Optimization Success
Reduced database queries with optimized ORM usage, implemented Redis caching for frequently accessed data, and improved API response times.
Scalable Architecture Design
Built modular Django apps enabling independent development, reusable components, and clear separation of concerns for future expansion.
SEO & Marketing Optimization
Implemented SEO best practices with meta tags, sitemaps, structured data, alt text, and public portfolio/blog systems to support organic traffic.
Developer-Friendly Codebase
Delivered detailed documentation, consistent code patterns, and safer API designs to improve maintainability and team onboarding.
Extensibility & Future-Proofing
Designed flexible storage backends, environment-based configuration, and signal-driven event handling for easy feature expansion.
Roadmap
Phase 1 - Core FoundationShipped
- Django REST API backend with JWT authentication
- Multi-role user system (Admin, Site Manager, Customer)
- PostgreSQL database schema with migrations
- React + Vite frontend with Tailwind CSS
- Basic CRUD operations for projects and diary entries
- Profile management with role-specific features
Phase 2 - Feature DevelopmentShipped
- Site diary system with materials, equipment, labor, delays
- Portfolio showcase with public access and filtering
- Blog CMS with rich text editing and categories
- Weather API integration for diary entries
- Project assignment workflow for admins
- Draft/publish workflows across modules
Phase 3 - Enhancement & PolishShipped
- Google Gemini AI chatbot integration
- Real-time toast notification system with polling
- Extension request management with approval workflow
- Redis caching for performance optimization
- Cloud storage integration (Supabase, MinIO, S3)
- SEO optimization with sitemaps and meta tags
- Newsletter subscription system
Phase 4 - Security & ReliabilityShipped
- Django Axes brute force protection
- Account locking mechanism
- Optional API payload encryption
- Email verification for new users
- OTP authentication for admin registration
- Comprehensive error handling and logging
Phase 5 - Future Enhancements (Planned)Planned
- WebSocket integration for true real-time notifications
- Mobile native apps (React Native)
- Advanced reporting with PDF export
- Integration with accounting systems
- AI-powered project timeline prediction
- Biometric authentication options
- Offline mode for site diary entries
- Third-party API integrations
Tech stack
- Django 5.2.6
- Django REST Framework
- PostgreSQL
- Redis 5.0.1
- JWT Authentication
- Gunicorn
- WhiteNoise
- React 18.3.1
- React Router DOM 6.22.0
- Vite 5.1.4
- Tailwind CSS 3.4.1
- Axios 1.6.7
- Framer Motion 12.29.2
- Chart.js 4.5.1
- ECharts 6.0.0
- React Quill 2.0.0
- Leaflet 1.9.4
- Lucide React
- Supabase / AWS S3
- MinIO
- SendGrid
- Google Gemini AI
- Django Axes
- Django CORS Headers
- Django CSP
- Bleach
- Cryptography
- Pillow
- DOMPurify