
teaching scheduler 6
一个为教育机构设计的现代化排程应用,使用Next.js和Supabase构建。
Repository Info
About This Server
一个为教育机构设计的现代化排程应用,使用Next.js和Supabase构建。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Teaching Scheduler 6
A modern scheduling application for teaching institutions, built with Next.js and Supabase.
Setup and Development
Prerequisites
- Node.js 18+
- npm 7+
- Docker and Docker Compose (for containerized development)
Local Development
Option 1: Standard Setup
- Clone the repository
- Install dependencies:
npm install - Create a
.envfile from the example:cp .env.example .env - Update the
.envfile with your Supabase credentials - Start the development server:
npm run dev
Option 2: Docker Development (Recommended)
- Clone the repository
- Create a
.envfile from the example:cp .env.example .env - Update the
.envfile with your Supabase credentials - Start the Docker development environment:
docker-compose -f docker/docker-compose.yml up
Option 3: Simple Docker Demo
For a quick test without the full MCP server setup:
- Clone the repository
- Create a
.envfile from the example - Run the test deployment script:
./scripts/test-deployment.sh - Visit http://localhost:3000 to access the application
- To clean up:
docker-compose -f docker/docker-compose-demo.yml down
MCP Server Integration
This project uses Model Context Protocol (MCP) servers for enhanced development and deployment capabilities:
-
Console Monitoring: Access detailed logs and performance metrics
http://localhost:3001 -
Docker Management: Container orchestration via Docker MCP
http://localhost:3002 -
Kubernetes Management: Production deployment orchestration
http://localhost:3003 -
CLI Tools: Execute deployment scripts securely
Available Scripts
npm run dev: Start development servernpm run build: Build for productionnpm start: Start production servernpm run lint: Run ESLintnpm run test: Run tests
Docker Deployment
For production deployment using Docker:
./scripts/docker-deploy.sh latest production
For cleanup:
./scripts/docker-cleanup.sh production
Kubernetes Deployment
For production deployment to Kubernetes:
./scripts/k8s-deploy.sh teaching-scheduler production latest
Monitoring
The application includes monitoring endpoints:
- Health Check:
/api/health- Basic health status - Metrics:
/api/metrics- Prometheus-compatible metrics
Recent Updates
Teacher Filtering Enhancement (2023-03-25)
We've fixed an issue where the calendar view would become empty when selecting a teacher. The enhancements include:
- Improved teacher ID matching across all calendar tables
- Support for multiple field name variations and case sensitivity
- Fallback matching for NT-Led classes when direct teacher matching fails
- Enhanced logging and debugging capabilities
- Better error handling for empty result sets
These changes ensure that when a teacher is selected from the dropdown, their classes will correctly appear in the calendar view.
Recent Improvements
- Enhanced Database Explorer: Fixed issues with table display and improved column widths for better data visibility.
- Improved Supabase Integration: Enhanced connection reliability and error handling.
- UI Enhancements: Optimized data display and improved error recovery.
- Error Boundaries: Added comprehensive error handling to prevent UI crashes.
Documentation
Additional documentation is available in the docs directory:
- Architecture
- Deployment Strategy
- Development Plan
- Data Structure
- Tasks
Contributing
Please see CONTRIBUTING.md for contribution guidelines.
Updated 2025-03-25 12:00:00
Quick Start
Clone the repository
git clone https://github.com/bersamabule/teaching-scheduler-6Install dependencies
cd teaching-scheduler-6
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.