I am trying to create a basic ecommerce website. I have a frontend, for the actual website, an admin (separate) where one can add or remove/edit products, and a backend folder. I can run it locally using npm start and it works well and everything interacts with each other.
I bought a domain and webhosting through hostinger. This is my first time trying to do any of this, but I know that I can put my frontend and admin on hostinger, but I’ll need to deploy my backend somewhere else (I’m trying to do vercel). But, I’m just kind of stuck as to how I can connect the frontend to the backend, and what my file structure should look like on hostinger (it has one main public_html directory, but I don’t want admin to be public either). Any help would be appreciated.
Thank you!
Praniil Nagaraj is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.