✅ Full-stack narrowcasting platform implementation ✅ Real-time WebSocket communication for instant updates ✅ Zone-specific content distribution (reception, restaurant, skislope, lockers, shop) ✅ Professional admin dashboard with content management interface ✅ Beautiful client display with winter/snow theme matching SnowWorld branding ✅ Comprehensive technical documentation and test suite ✅ Docker deployment support with CI/CD pipeline ✅ All system tests passing successfully 🏗️ Technical Implementation: - Backend: Node.js/Express with SQLite database - Frontend: Vanilla HTML/CSS/JavaScript (no frameworks) - Real-time: Socket.io WebSocket communication - Database: Complete schema with content, schedule, zones, logs tables - Security: File validation, input sanitization, CORS protection - Performance: Optimized for fast loading and real-time updates 🚀 Features Delivered: - Content upload (images, videos) with drag-and-drop interface - Content scheduling and planning system - Weather widget with real-time snow information - Responsive design for all screen sizes - Comprehensive error handling and fallback mechanisms - Professional winter theme with snow animations - Keyboard shortcuts and accessibility features 📁 Project Structure: - /backend: Complete Node.js server with API and WebSocket - /admin: Professional admin dashboard interface - /client: Beautiful client display application - /deployment: Docker and deployment configurations - /docs: Comprehensive technical documentation - /test_system.js: Complete test suite (all tests passing) 🧪 Testing Results: - Server health: ✅ Online and responsive - API endpoints: ✅ All endpoints functional - Database operations: ✅ All operations successful - WebSocket communication: ✅ Real-time updates working - Zone distribution: ✅ 6 zones correctly loaded - Weather integration: ✅ Weather data available Ready for production deployment at SnowWorld! 🎿❄️
5.1 KiB
Contributing to SnowWorld Narrowcasting System
Thank you for your interest in contributing to the SnowWorld Narrowcasting System! This document provides guidelines and instructions for contributing to the project.
🎯 Project Overview
This is a narrowcasting system developed for SnowWorld as part of an MBO Challenge. The system manages and displays content on various screens within the ski resort.
🏗️ Architecture
- Backend: Node.js with Express
- Database: SQLite
- Frontend: Vanilla HTML/CSS/JavaScript
- Real-time: WebSocket (Socket.io)
🚀 Quick Start
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/narrow-casting-system.git - Install dependencies:
npm run setup - Start development:
npm run dev
📋 Development Guidelines
Code Style
- Use consistent indentation (2 spaces)
- Follow camelCase for variables and functions
- Use descriptive variable names
- Add comments for complex logic
- Keep functions small and focused
File Structure
backend/
├── server.js # Main server file
├── database/ # Database logic
├── services/ # Business logic
└── utils/ # Utility functions
admin/
├── index.html # Main HTML
├── styles.css # Styles
└── js/ # JavaScript modules
client/
├── index.html # Display HTML
├── styles.css # Display styles
└── js/ # Display logic
Commit Messages
Use clear, descriptive commit messages:
feat: add real-time content updatesfix: resolve WebSocket connection issuesdocs: update API documentationstyle: improve responsive design
🔧 Development Process
1. Backend Development
cd backend
npm run dev # Starts with nodemon for auto-reload
2. Frontend Development
For admin dashboard:
cd admin
npm start # Serves on http://localhost:8080
For client display:
# Open client/index.html in browser
# Or use live server for development
3. Testing
Run system tests:
node test_system.js
🐛 Bug Reports
When reporting bugs, please include:
- Steps to reproduce
- Expected behavior
- Actual behavior
- Browser/environment info
- Screenshots if applicable
💡 Feature Requests
For feature requests, please:
- Check if the feature already exists
- Describe the use case clearly
- Explain why this feature would be valuable
- Consider implementation complexity
🔒 Security
Reporting Security Issues
DO NOT report security vulnerabilities publicly. Instead:
- Email security concerns to: [security@snowworld.com]
- Include detailed description of the vulnerability
- Provide steps to reproduce if possible
- Allow time for investigation before disclosure
Security Guidelines
- Never commit sensitive data (passwords, API keys)
- Validate all user inputs
- Use parameterized queries
- Implement proper CORS policies
- Keep dependencies updated
📊 Performance Guidelines
- Minimize database queries
- Use appropriate indexing
- Implement caching where beneficial
- Optimize file uploads
- Consider bandwidth limitations
🎨 UI/UX Guidelines
Design Principles
- Keep the winter/snow theme consistent
- Ensure high contrast for readability
- Make interfaces intuitive and simple
- Consider different screen sizes
- Test on various devices
Color Scheme
- Primary: #0066cc (blue)
- Secondary: #e6f3ff (light blue)
- Accent: #00a8ff (bright blue)
- Background: Blue to purple gradients
- Text: High contrast with backgrounds
📝 Documentation
- Update README.md for new features
- Document API changes
- Include code comments for complex logic
- Update technical documentation
🔄 Deployment
Development
npm run dev # Development server
npm run admin # Admin dashboard
Production
npm start # Production server
npm run build # Build for production
📋 Pull Request Process
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes following the guidelines
- Test thoroughly
- Commit with descriptive messages
- Push to your fork:
git push origin feature/amazing-feature - Create a Pull Request with:
- Clear title and description
- List of changes made
- Screenshots for UI changes
- Test results
PR Requirements
- All tests must pass
- No linting errors
- Documentation updated
- Code reviewed by maintainer
🏷️ Version Management
We use semantic versioning:
- MAJOR: Breaking changes
- MINOR: New features (backward compatible)
- PATCH: Bug fixes
📞 Support
For questions and support:
- Check existing documentation
- Search closed issues
- Create a new issue with proper labels
- Be patient and respectful
🏆 Recognition
Contributors will be recognized in:
- README.md contributors section
- Release notes
- Project documentation
📄 License
By contributing, you agree that your contributions will be licensed under the same license as the project.
Thank you for contributing to the SnowWorld Narrowcasting System! ❄️