Getting Started with Dartblaze
Welcome to Dartblaze! This guide will help you set up your development environment and create your first Dart Cloud Function.
Prerequisites
- Dart SDK (3.6.0 or higher)
- Firebase project with enabled billing (Blaze plan)
- firebase CLI tools installed
- gcloud CLI tools installed
Google Cloud Platform setup
Before you start using Dartblaze, please enable the following APIs in the GCP console:
- Cloud Run API
- EventArc API
Installation
INFO
Installation instructions coming soon
Setup the CLI
- Run the
dartblaze doctor
command to make sure you have all the dependendencies installed locally - Login using the
dartblaze login
command
TIP
The login
command will also prompt you to login into firebase
and gcloud
if you are not already logged in
Creating Your First Project
List out your projects using
dartblaze projects:list
.Copy the project id of the project you would like to use.
Initialize the project
bashdartblaze init -e <account_email> -p <project_id>
For email, use the same email that you use for Firebase.
For project id, use one of the projects associated with your Firebase account.