Firebase is Google's backend-as-a-service platform for building mobile and web apps without managing your own servers. It's the #21 most-used developer tool, reported in roughly 13.1% of developer surveys. It bundles hosting, user authentication, real-time and document databases (Realtime Database and Firestore), and serverless Cloud Functions into one managed platform โ a fast way for small teams to ship a working app without standing up their own backend infrastructure.
A firebase.json file configures how a project's hosting, functions, and Firestore rules deploy together.
// firebase.json
{
"hosting": {
"public": "dist",
"ignore": ["firebase.json", "**/.*"],
"rewrites": [{ "source": "**", "destination": "/index.html" }]
},
"functions": { "source": "functions" }
}
# deploy hosting + functions in one command
firebase deploy
Install the Firebase CLI, then log in and link it to a project created in the Firebase console.
# install the CLI globally
npm install -g firebase-tools
# log in and initialize a project
firebase login
firebase init