Firebase/Cloud Firestore

Cloud Firestore 시작하기

4EV.ZONE 2022. 6. 5. 22:45

Realtime updates, powerful queries, and automatic scaling | 실시간 업데이트, 강력한 쿼리 및 자동 확장

Get started with Cloud Firestore | Cloud Firestore 시작하기

This quickstart shows you how to set up Cloud Firestore, add data, then view the data you just added in the Firebase console.

여기 둘러보기에서는 Cloud Firestore를 설정하고 데이터를 추가한 다음 Firebase 콘솔에서 방금 추가한 데이터를 보는 방법을 보여준다.

Create a Cloud Firestore database | Create a Cloud Firestore database

If you haven't already, create a Firebase project: In the Firebase console, click Add project, then follow the on-screen instructions to create a Firebase project or to add Firebase services to an existing GCP project.

Firebase 프로젝트를 아직 생성하지 않은 경우: Firebase 콘솔에서 프로젝트 추가를 클릭한 다음 화면의 지시에 따라 Firebase 프로젝트를 생성하거나 Firebase 서비스를 기존 GCP 프로젝트에 추가한다.

Navigate to the Cloud Firestore section of the Firebase console. You'll be prompted to select an existing Firebase project. Follow the database creation workflow.

Firebase 콘솔의 Cloud Firestore 섹션으로 이동한다. 기존 Firebase 프로젝트를 선택하라는 메시지가 표시된니다. 데이터베이스 생성 워크플로를 따른다.

Select a starting mode for your Cloud Firestore Security Rules:

Cloud Firestore 보안 규칙의 시작 모드를 선택한다:

Test mode | 테스트 모드

Good for getting started with the mobile and web client libraries, but allows anyone to read and overwrite your data. After testing, make sure to review the Secure your data section.

모바일 및 웹 클라이언트 라이브러리를 시작하는 데 적합하지만 누구나 데이터를 읽고 덮어쓸 수 있다. 테스트 후 데이터 보호 섹션을 검토하라.

To get started with the web, Apple platforms, or Android SDK, select test mode.

웹, Apple 플랫폼 또는 Android SDK를 시작하려면 테스트 모드를 선택하라.

Locked mode | 

Denies all reads and writes from mobile and web clients. Your authenticated application servers (C#, Go, Java, Node.js, PHP, Python, or Ruby) can still access your database.

모바일 및 웹 클라이언트의 모든 읽기 및 쓰기를 거부한다. 인증된 애플리케이션 서버(C#, Go, Java, Node.js, PHP, Python 또는 Ruby)는 여전히 데이터베이스에 액세스할 수 있다.

To get started with the C#, Go, Java, Node.js, PHP, Python, or Ruby server client library, select locked mode.

C#, Go, Java, Node.js, PHP, Python 또는 Ruby 서버 클라이언트 라이브러리를 시작하려면 잠금 모드를 선택하라.

Select a location for your database. | 데이터베이스 위치를 선택하라.

This location setting is your project's default Google Cloud Platform (GCP) resource location. Note that this location will be used for GCP services in your project that require a location setting, specifically, your default Cloud Storage bucket and your App Engine app (which is required if you use Cloud Scheduler).

이 위치 설정은 프로젝트의 기본 Google Cloud Platform(GCP) 리소스 위치이다. 이 위치는 위치 설정이 필요한 프로젝트의 GCP 서비스, 특히 기본 Cloud Storage 버킷 및 App Engine 앱(Cloud Scheduler을 사용하는 경우 필요)에 사용된다.

If you aren't able to select a location, then your project already has a default GCP resource location. It was set either during project creation or when setting up another service that requires a location setting.

위치를 선택할 수 없다면 프로젝트에 이미 기본 GCP 리소스 위치가 있는 것이다. 프로젝트 생성 중 또는 위치 설정이 필요한 다른 서비스를 설정할 때 설정되었다.
더보기

Warning: After you set your project's default GCP resource location, you cannot change it.

경고: 프로젝트의 기본 GCP 리소스 위치를 설정한 후에는 변경할 수 없다.

더보기

Cloud Firestore and App Engine: You can't use both Cloud Firestore and Cloud Datastore in the same project, which might affect apps using App Engine. Try using Cloud Firestore with a different project.

Cloud Firestore 및 App Engine: 동일한 프로젝트에서 Cloud Firestore와 Cloud Datastore를 같이 사용할 수 없다.  App Engine을 사용하는 앱에 영향을 미칠 수 있다. 다른 프로젝트에서 Cloud Firestore를 사용해 보자.

'Firebase > Cloud Firestore' 카테고리의 다른 글

Cloud Firestore 데이터 모델  (0) 2022.06.06