NextFire main logoNextFire
Docs X
Introduction
Get Started
Clone repo
Run the app
Configuration
Firebase
Create firebase app
Authentication
Firestore
Storage
Functions
Global configuration
Public
Site config
Payments
Stripe
One time
Subscriptions
Webhooks
Usage
Project structure
Static pages
Public pages
Protected pages
Auth
Client auth
Server auth
Data fetching
Firestore client
Firestore admin
Functions
Storage
Content
Blog
Documentation
Components
Markdown
Cards
Diagrams
Filetree
Lists
Maths
Notes
Steps
Table
Tabs
Public
Deep
Deeper
Even deeper
  1. Firebase
  2. Create Firebase App

Create a Firebase App

A detailed walkthrough on creating a Firebase app using the Firebase Console.

1

Go to the Firebase Console

Head over to https://console.firebase.google.com.

If you’re not already logged in, sign in using your Google account.

Firebase Console Homepage (Add screenshot: Firebase Console homepage with “Go to console” button)

2

Create project


  1. Click the “Add project” or “Create a project” button.
  2. Enter a Project name — for example, my-firebase-app.
  3. (Optional) Edit your Project ID if you want something custom.
  4. Click Continue.

Create Project Form (Add screenshot: Create project screen with project name field)


3

Add an App to Your Project

Now that your project is ready, let’s connect an app to it.

In your Firebase dashboard:

  1. Click the platform icon for the type of app you want to add:
    • ** Web App
    • 🤖 Android
    • 🍎 iOS
  2. Let’s use the Web App example for now.

Firebase Add App Icons (Add screenshot: Firebase dashboard showing Web, iOS, and Android app icons)

4

Add Firebase SDK to Your App

Once your app is registered, Firebase will show you a snippet of configuration code like this:

// Import and configure Firebase
const firebaseConfig = {
  apiKey: "YOUR_API_KEY",
  authDomain: "your-app.firebaseapp.com",
  projectId: "your-app",
  storageBucket: "your-app.appspot.com",
  messagingSenderId: "123456789",
  appId: "1:123456789:web:abcdef123456"
};

=> Fill in firebase env vars values in .env.local

Generating the Private Key

The private key is fundamental to running your app with Admin permissions on the server side.

  1. Go to https://console.cloud.google.com/
  2. Select yout project
  3. Search/go to Service Accounts:
  4. Open service account. (Name = firebase admin sdk)
  5. Copy admin client email to env var
  6. Go to Keys tab.
  7. Generate a new JSON key and download it.

Once you open the generated JSON file, copy the private_key property and place it in your environment file .env.local as long as you do not commit the environment file.

FirebaseAuthentication

On this page

Generating the Private Key

Content

FeedbackEdit page

© 2025 Ship IT.

Rubix Studios logo