I imagine the following setup:
What would be the right tech stack to do that and what hardware do I need?
Thanks!
This setup would work to drive the outputs of the Pi. You would need the Raspberry Pi, a Micro SD card (Assuming it is a modern Pi), A USB power plug and some way to connect the outputs. A few jumpers and a breadboard would do the trick but there are also breakout modules available,
You can then write your own software for the Pi or use something pre-made like, http://webiopi.trouch.com/