my-firebase-app/
Pick any file or folder on the left to see what it is, why it exists, when you add it and the mistakes people make with it. Switch the stage to watch the project grow.
# Install the Firebase CLI and sign in
npm install -g firebase-tools && firebase login# Create the project files: pick Firestore, Functions (TypeScript, ESLint), Storage and Emulators
mkdir my-firebase-app && cd my-firebase-app && firebase init firestore functions storage emulators# Add staging and production aliases
firebase use --add# Add validation to the functions package
npm --prefix functions install zod# Add test tools for functions and rules
npm --prefix functions install -D vitest firebase-functions-test && mkdir tests && npm --prefix tests install -D @firebase/rules-unit-testing firebase vitest# Run everything locally with saved seed data
firebase emulators:start --import=./seed --export-on-exit# Deploy only what you mean to
firebase deploy --only firestore,storage,functions --project staging