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
Setup the CLI
- Install the CLI
- Run the
dartblaze doctorcommand to make sure you have all the dependendencies installed locally - Login using the
dartblaze logincommand
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
Create a new project by using
dartblaze new <project_name>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.
