But how would Alpine communicate with the Rails backend? Do I have to manually map the routes url between FE and BE?
For communicating the backend through using an api, or issuing async get/post or form submissions that is done pretty much the same as you would do it using html or javascript.
And Rails has their own flavor of this with Hotwire/Turbo.