Recently, I completed an exciting code challenge for a media company specializing in digital kiosks. The task? To create a Digital Signage Content Management System that connects a web application with a desktop display app using WebSockets for communication.
The challenge required building a system with the following core features:
The first major challenge I faced was designing the implementation. I restarted the project multiple times, initially focusing on the Electron app. However, after much research and experimentation, I realized that starting with the web app and then connecting it to the Electron display app was a better choice. This allowed me to establish the core functionality of content management before tackling the communication layer with WebSockets.
For this project I chose Next.js due to its better integration with Vercel, making it incredibly easy to deploy and scale the app.
One of the biggest hurdles was learning Fabric.js and Electron, two tools I had never used before:
The WebSocket feature was particularly tricky. I successfully built a WebSocket server that enabled the Electron app to replicate the web app's content. However, real-time updates between the two apps proved to be a challenge. While I couldn't get it working perfectly for this version, I plan to revisit and improve it to achieve full real-time synchronization.
This project was both challenging and rewarding. I gained valuable experience in:
While I submitted the project, I’m excited to improve it further, add the missing features, and optimize the real-time capabilities.
If you're curious, here’s where you can see the project live or contribute to its development:
I’m making this project open-source and would love for developers to collaborate, explore, and enhance it. Whether you're interested in improving the real-time features, optimizing the Electron app, or adding new functionality, your contributions are welcome!
This project challenged me to step out of my comfort zone and explore new tools, frameworks, and design approaches. It reminded me that development is an iterative process filled with learning opportunities. I look forward to continuing this project, improving it over time, and sharing updates along the way. ?
The above is the detailed content of Building a Digital Signage Content Management System: A Challenge and a Journey. For more information, please follow other related articles on the PHP Chinese website!