This quickstart is a movie review app to demonstrate the use of Firebase Data Connect with a Cloud SQL database. For more information about Firebase Data Connect visit the docs.
Follow these steps to get up and running with Firebase Data Connect. For more detailed instructions, check out the official documentation.
- Flutter 3.5.3 or above
- Latest version of Visual Studio Code
- The Firebase Data Connect VS Code Extension
- If you haven't already, create a Firebase project.
- In the Firebase console, click Add project, then follow the on-screen instructions.
- Install flutterfire:
dart pub global activate flutterfire_cli- Clone this repository to your local machine:
git clone https://github.com/firebase/quickstart-flutter.git
- Configure flutterfire This will automatically download and set up firebase for your project:
flutterfire configure -y -a com.example.dataconnect- Open the
quickstart-flutter/dataconnectdirectory in VS Code. - Click on the Firebase Data Connect icon on the VS Code sidebar to load the Extension. a. Sign in with your Google Account if you haven't already.
- Click on "Connect a Firebase project" and choose the project where you have set up Data Connect.
- Click on "Start Emulators" - this should generate the Kotlin SDK for you and start the emulators.
In VS Code, open the quickstart-flutter/dataconnect/dataconnect/moviedata_insert.gql file and click the
Run (local) button at the top of the file.
If you’d like to confirm that the data was correctly inserted,
open quickstart-flutter/dataconnect/movie-connector/queries.gql and run the ListMovies query.
Press the Run button in VS Code to run the sample app on your device.