A comprehensive conference room utilization and analytics platform built for Dewey, Cheatham & Howe Law Firm. This Next.js application demonstrates enterprise-grade IoT sensor data processing, real-time monitoring, and advanced analytics capabilities using Supabase as the backend.
For more information, please refer to the FEATURES.md file.
- Node.js 18+
- npm/yarn/pnpm
- Supabase account with project setup
- Environment variables (see configuration below)
-
Clone and Install
git clone git@github.com:supabase/smart-office-demo.git cd smart-office-dashboard npm install
-
Environment Configuration
# Configure your Supabase project specific variables cp .env.example .env.local # add an .env file, add an OPENAI_API_KEY touch supabase/functions/.env
-
Start a local Supabase dev environment
npx supabase start
-
Start the Next.js dev server
npm run dev
-
Access Application Open http://localhost:3000
-
Run the following commands, either in parallel or sequentially:
npm run generate:rooms npm run generate:users npm run generate:tickets npm run generate:images
-
Deploy the functions:
npm run functions:deploy-all
-
Load some initial sensor data simulator:
npm run simulate:sensors # Run it every time you want to simulate new sensor data for the real-time floorplan viewer
-
Load some initial booking data simulator:
npm run simulate:bookings
This project includes pgflow, a workflow engine for Supabase that helps with background jobs and queue processing. See PGFLOW.md for local development setup and examples.
# Build and deploy
npm run build
# Configure environment variables in Vercel dashboard
# Connect GitHub repository for automatic deployments
For pgflow workflows in production, see Deploy to Supabase.com.
npm run build
npm run start
Ensure all environment variables are configured in your deployment platform with production Supabase credentials.
- Fork the repository
- Create feature branches (
feature/analytics-enhancement
) - Follow TypeScript best practices
- Add tests for new features
- Submit pull request with detailed description
MIT License - see LICENSE file for details
This application is built for the fictional law firm "Dewey, Cheatham & Howe," serving as a sophisticated demonstration of modern office technology solutions. The firm's 57 conference rooms across multiple floors provide an ideal scenario for showcasing enterprise-scale IoT monitoring and analytics capabilities.
Built with ❤️ for enterprise IoT demonstrations Showcasing: Next.js 15, Supabase, Analytics Buckets, Real-time Data Processing