BEKURE_OS|v1.0.0-rc
0x0000
[00]โ†’ INIT_KERNEL(959ms)
[01] LOAD_MODULES
[02] MOUNT_FS
[03] START_SERVICES
[04] INIT_NETWORK
[05] RENDER_UI
LOAD_PROGRESS0%
MEM: 0MB
CPU: 41%
I/O: 238KB/s
TEMP: 46ยฐC
STATUS:BOOTING...
UPTIME: 0sPID: 4556
All Projects
01
Project Detail
Construction & Real Estate ยท Full-Stack Web Application

Enterprise Construction Platform & CMS

published

A full-stack enterprise web platform for construction companies featuring a high-performance Next.js public website, a Vite/React administration dashboard, and an Express.js MySQL backend API with Cloudinary asset management and automated ISR cache revalidation.

Overview

## ๐Ÿ“Œ Project Overview **Enterprise Construction Platform & CMS** is a robust, full-stack monorepo system engineered for high-growth construction and engineering companies. The platform seamlessly bridges public brand presentation with real-time back-office operations, allowing administrators to manage projects, services, blog news, client testimonials, and certificates through a custom content management system (CMS). Built with a decoupled, high-availability architecture, the system pairs a fast **Next.js (App Router)** public web application with a **React + Vite** administrative control center powered by a secure **Node.js/Express.js REST API** connected to a **Managed MySQL** database. --- ## ๐Ÿ› ๏ธ Tech Stack & Architecture ### ๐ŸŒ Public Website (`construction-website`) * **Framework**: Next.js (App Router, React 19) * **Styling**: Tailwind CSS v4, Radix UI, Emotion, Lucide Icons * **Animations**: Motion (Framer Motion) * **Rendering**: Server-Side Rendering (SSR) & Incremental Static Regeneration (ISR) for instant page loads and maximum SEO efficiency. ### ๐Ÿ”‘ Admin Control Panel (`construction-admin`) * **Framework**: React 18 + Vite 6 * **Routing**: React Router v7 * **Rich Text Editing**: Tiptap Editor for dynamic blog/news publishing * **Data Visualization**: Recharts for interactive analytics * **UI Components**: Radix UI Primitives & Tailwind CSS ### โš™๏ธ Backend API (`construction-api`) * **Runtime & Framework**: Node.js & Express.js v5 (TypeScript) * **Database**: Managed MySQL (MySQL2 driver, dynamic migration engine) * **Cloud Media Pipeline**: Cloudinary API + Multer middleware for optimized image transformations * **Security & Auth**: JWT (JSON Web Tokens), bcrypt password hashing, Helmet HTTP security headers, CORS, Zod schema validation * **Services & Utilities**: Nodemailer for automated customer inquiries, Pino structured logging, Compression middleware --- ## โœจ Key Features & Capabilities * **๐Ÿ—๏ธ Multi-Media Project Showcase**: High-resolution gallery management supporting multi-image uploads, categorized tags, and client project timelines. * **โšก On-Demand ISR Cache Revalidation**: Dynamic content updates in the Admin Panel instantly trigger POST revalidation hooks to flush static page caches on the public Next.js site without requiring full redeployments. * **โœ๏ธ WYSIWYG Content Publishing**: Tiptap-powered rich text editing for publishing company news, announcements, and structural case studies. * **๐Ÿ“ฉ Real-Time Inquiry & Notification System**: Customer contact submissions automatically queue formatted email notifications to managers via Nodemailer and store messages directly in the admin dashboard. * **๐Ÿ“ฑ Fully Responsive Design**: Mobile-first fluid UI crafted with accessible Radix UI primitives and custom CSS animations. * **๐Ÿ”’ Enterprise Security & Audit**: Protected API routes with token-based authentication, strict request body validation via Zod, and HTTP request logging via Pino. --- ## ๐Ÿ“ System Architecture Flow โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” HTTP GET / ISR โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Public Website โ”‚ โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚ Next.js App Server โ”‚ โ”‚ (Samson Construction) โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ REST API Call โ–ผ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” REST API (JWT Auth) โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Admin Panel โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ โ”‚ Express.js Backend API โ”‚ โ”‚ (Vite + React) โ”‚ โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚ (Node.js / TypeScript) โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”‚ MySQL Query (mysql2)โ”‚ โ”‚ Cloudinary SDK โ–ผ โ–ผ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Managed โ”‚ โ”‚ Cloudinary โ”‚ โ”‚ MySQL DB โ”‚ โ”‚ Media CDN โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ --- ## ๐Ÿš€ Key Technical Highlights & Impact * **Performance**: Achieved near-instant LCP (Largest Contentful Paint) times on public pages through hybrid SSR/ISR rendering strategies. * **Scalability**: Decoupled monorepo architecture enables independent scaling of public traffic servers, administrative functions, and backend services. * **Developer Experience**: Standardized TypeScript contracts across API and frontend packages with comprehensive OpenAPI/Hoppscotch API documentation.