Zum Inhalt springen

Migrating XAMPP/PHP/MySQL E-Commerce Project to Firebase – Need Help with URL Routing & NoSQL Conversion

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:

  1. 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?
  2. 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)?

submitted by /u/Relative_Truth_4930
[link] [comments]

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert