首页 > 解决方案 > 在 retool 如何使用 retool 连接和上传 Firebase 中的数据

问题描述

在 retool 如何使用 retool 连接和上传 firebase 中的数据,如果有人帮助我的话。

<script>
  // Your web app's Firebase configuration
  // For Firebase JS SDK v7.20.0 and later, measurementId is optional
  var firebaseConfig = {
    apiKey: "AIzaSyC0W4G9vFxKV99kYDPvw_qgoMOF6Yj720g",
    authDomain: "test-b0e28.firebaseapp.com",
    databaseURL: "https://test-b0e28-default-rtdb.firebaseio.com",
    projectId: "test-b0e28",
    storageBucket: "test-b0e28.appspot.com",
    messagingSenderId: "729064532529",
    appId: "1:729064532529:web:ab1263c616218ebb990310",
    measurementId: "G-Y64XEPGK2V"
  };
  // Initialize Firebase
  firebase.initializeApp(firebaseConfig);
  firebase.analytics();
</script>

标签: firebaseretool

解决方案


Retool 与 Firebase 具有原生集成,因此您可以使用他们的 GUI 进行查询,而不是直接在 SDK 中编写。以下是查询 Firestore 的示例:

在此处输入图像描述

要连接数据源,请转到yoursubdomain.retool.com/resources/new并找到 Firebase。


推荐阅读