A system to display a slideshow on TV-Screens. Made for Kistan.
This is V2 of the whole application and it is not yet in operation for Kistan.
This application is a combined frontend and backend system. The frontend is made using React and Typescript and the backend is made using some small frameworks in Golang.
Configuration is done with an YML file placed in the current working directory or /etc/insektionen
with the
name in_tv.yml
.
The default configuration will be written to current directory if no configuration could be loaded.
For a successful build both the frontend and backend needs to be compiled. This will create the compiled React frontend for embedding into the Golang binary.
cd
into the frontend directory and install all dependencies with npm i
. Then build the resulting output
using npm run build
.
Use the go toolchain to compile the backend as normal. It will use Golangs embed feature to embed all files from the frontend build step. This embedded code is then packaged into the final binary and served using the built-in web-server.