Thanks for the reply, and sorry for the dumb question but then, I need to have a backend on AWS or similar to deploy the server right?
yes you will need a php server, there is free services that can provide you a php server if your project is small, or you can host it using other services.