Project Spotlight: W2W-Display Infrastructure

Role: Technical Lead & Developer

Project Overview

I architected and deployed a localized, high-availability web platform to provide real-time visibility into operational staffing. The w2w-display system serves as a central “command center” for high-traffic retail and event environments, pulling live scheduling data into a high-visibility dashboard.

The Problem

In complex operational settings like Shady Brook Farm, staff schedules are dynamic and often decentralized. Relying on individual mobile logins for schedule checks created communication bottlenecks and significant administrative overhead for management. There was a critical need for a “glanceable” source of truth that remained operational even during external network instability.

Technical Implementation

The solution is a full-stack application built with Node.js and Express, designed to run as a persistent background service on a local area network.

image

Backend: API Orchestration & Middleware

The backend utilizes the WhenToWork API to pull live shift data. I implemented logic to sanitize this data and serve it via a local REST endpoint, ensuring the frontend only processes the most relevant, time-sensitive information.

const express = require('express');
const app = express();
const path = require('path');

// Middleware to serve static files from the public directory
app.use(express.static(path.join(__dirname, 'public')));

// Local API endpoint for shift data
// This abstracts the third-party API complexity away from the client
app.get('/api/shifts', async (req, res) => {
    try {
        // Fetch logic for WhenToWork data would reside here
        const shiftData = await fetchShiftsFromAPI(); 
        res.status(200).json(shiftData);
    } catch (error) {
        console.error('Data Retrieval Error:', error);
        res.status(500).send('Internal Server Error');
    }
});

const PORT = process.env.PORT || 3000;
app.listen(PORT, '0.0.0.0', () => {
    console.log(`Server initialized on port ${PORT}`);
});

Frontend: High-Visibility UI/UX

The frontend was engineered for clarity in high-traffic environments. I utilized a combination of JavaScript, CSS Flexbox, and HTML to create a responsive grid that categories staff by department (e.g., Cashiers, Retail, Food).

/* Department-specific color coding for rapid identification */
.column-cashiers { border-top: 10px solid #ff0000; }
.column-retail { border-top: 10px solid #9b59b6; }

.shift-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

Project Management & Business Impact

Core Competencies


*full source code available at: github.com/cgolden15/w2w-display*