Kodi as a front end to jellyfin works great
For local testing: build and run tests on whatever computer I’m developing on.
For deployment: I have a self hosted gitlab instance in a kubernetes cluster. It comes with a registry all setup. Push the project, let the cicd pipeline build, test, and deploy through staging into prod.
You can setup separate vlans, or even separate networks for allowing the ads if you need.