What is Firebase?
Firebase is a Backend-as-a-Service platform provided by Google. If you want to add backend features to a plain web app, you'd normally have to build things like the server, database, authentication, file storage, and deploy system yourself. Firebase hands you all of that as ready-made services instead, so even a solo frontend developer can spin up something that feels production-ready, fast.
Firebase's main services
- Authentication — user account systems like email/password, Google login, phone login
- Cloud Firestore — a NoSQL database built around collections/documents
- Cloud Storage — storing files such as images, PDFs, videos, and avatars
- Firebase Hosting — publishing a static website/app through a CDN
- Cloud Functions — running certain backend logic as serverless functions
An easy example to picture
Say you're building a to-do app. Each user needs to be able to log in, their todo list needs to be saved in a database, they need to be able to upload a profile image, and the site needs to go live online. With Firebase, you can wire up each of these features one service at a time.
Common mistake
Having your Firebase config visible in public code won't break your app by itself, but having wrong Security Rules is genuinely dangerous. Worry a lot more about your rules than about your config.