如果我想从 Google 云产品外部连接到我的 Cloud Firestore 数据库,是否必须启用 Firebase?
Do I have to enable Firebase if I want to connect to my Cloud Firestore database from outside of Google cloud products?
到目前为止,我一直在使用服务帐户从 Google Cloud Functions 或 Colab 等产品中连接到我的 Firestore 数据库(未启用 Firebase)。
现在我需要从在浏览器中打开的 html 页面连接到 Firestore。不启用 Firebase 是否可行?
是的,Google Cloud Firestore NodeJS SDK is meant to be used on server side only. You can use Firebase Web SDK along with Firebase Authentication and Firebase Security Rules 支持客户端直接连接到您的 Firestore 数据库的无服务器应用架构。
您不一定非要使用 Firebase 身份验证。但是,最好限制访问并只允许 public 内容无需身份验证即可访问。
您可以按照文档中的quickstart设置客户端SDK。
到目前为止,我一直在使用服务帐户从 Google Cloud Functions 或 Colab 等产品中连接到我的 Firestore 数据库(未启用 Firebase)。
现在我需要从在浏览器中打开的 html 页面连接到 Firestore。不启用 Firebase 是否可行?
是的,Google Cloud Firestore NodeJS SDK is meant to be used on server side only. You can use Firebase Web SDK along with Firebase Authentication and Firebase Security Rules 支持客户端直接连接到您的 Firestore 数据库的无服务器应用架构。
您不一定非要使用 Firebase 身份验证。但是,最好限制访问并只允许 public 内容无需身份验证即可访问。
您可以按照文档中的quickstart设置客户端SDK。