To run commands at launch on Raspberry Pi, you can add them to ~/.config/lxsession/LXDE-pi/autostart
Just append commands to the file.
# Turn screensaver and energy saving options off,
# so display remains on at all times.
@xset s off
@xset -dpms
@xset s noblank
#Run caddy server that hosts the site.
@caddy -conf /home/pi/Desktop/x1kiosk.caddyfile
#Open Chromium with the site
@chromium-browser --kiosk --app=http://localhost:8021
#Hide the mouse cursor
@unclutter -idle 1
This was my configuration to test a kiosk app.