the program should run on xampp where I have apache, php and mysql, and then works with adapter-static?
Also I did not understand the difference of implentation between SPA and SSR, could you explain it to me ?
Yes, if you build it with adapter-static, you can serve it with Apache as the built files are regular HTML/CSS/JS files.
In short:
SPA means it will run in the browser only, so it only contains HTML/CSS/JS files. Routing (navigating within the app to a different route) is done on the client side.
SSR means the HTML is generated on the server-side, so you need to have a NodeJS running and serving your SSR application.