ikhsan3adi / auction_app_api_ci4

RESTful API service for Flutter-Auction-App using CodeIgniter 4
MIT License
14 stars 3 forks source link

Running on Firebase #4

Open aksebzeci opened 1 year ago

aksebzeci commented 1 year ago

Hello,Is there a way to run this backend on Firebase?

ikhsan3adi commented 1 year ago

I don't know, but

According to ChatGPT:

Yes, you can run a RESTful API built with CodeIgniter in Firebase as part of your Firebase project. However, there are some considerations and adjustments you need to make to achieve this:

  1. Firebase Hosting: You can use Firebase Hosting to serve static websites, including the frontend application that consumes your RESTful API running on the CodeIgniter server. Firebase Hosting can host websites or applications built with HTML, CSS, and JavaScript.

  2. Firebase Functions: If your RESTful API requires server-side logic and connects to a database or other resources, you can use Firebase Functions. Firebase Functions are cloud-based functions run by Firebase, allowing you to write server-side code that can interact with APIs or other resources and provide responses to the frontend application.

  3. Firebase Firestore: If your RESTful API uses a database, you can replace it with Firebase Firestore, which is a cloud database service provided by Firebase. Firestore can be used as a replacement or in conjunction with the database used in your RESTful API.

However, there are changes and adjustments that need to be made to your RESTful API code to work well in the Firebase environment. Some technical considerations include:

If you decide to run your CodeIgniter RESTful API in Firebase, it is advisable to have a good understanding of Firebase requirements and limitations and thoroughly test to ensure that your API functions as expected in the Firebase environment.

Ziyad197 commented 6 months ago

i want video for the app to understand the way, i can’t run the codes on my laptop, display errors