Hey everyone, I originally built an e‑commerce project on XAMPP using PHP for the backend and MySQL as the database. Now I want to deploy it on Firebase Hosting and switch my data layer to Firestore (NoSQL). Two issues I’m stuck on:
- PHP page routing on Firebase Hosting
- On XAMPP I used Apache’s
mod_rewrite
and PHP includes to handle URLs and form actions. - How can I replicate clean URL routing (e.g.
/product/123
) and POST actions with Firebase’s hosting rewrites?
- On XAMPP I used Apache’s
- Converting MySQL queries to Firestore
- My code uses SQL joins and transactions (e.g. fetching user orders with
JOIN
). - What’s the best way to model these relations in Firestore and rewrite queries in PHP (using the Firebase Admin SDK)?
- My code uses SQL joins and transactions (e.g. fetching user orders with
submitted by /u/Relative_Truth_4930
[link] [comments]