Firebase gives you the tools to develop high-quality apps, grow your user base, and earn more money. We cover the essentials so you can monetize your business and focus on your users.
First, you need to make a few preparations:
-
Make sure you have firebase-tools installed.
-
Create a Firebase account here.
-
Run firebase login and fill in your Firebase credentials:
firebase login
Build a site by running this command in your project's root directory:
gridsome build
Create firebase.json and .firebaserc at the root of your project with the following content:
firebase.json:
{
"hosting": {
"public": "./dist",
"ignore": []
}
}
.firebaserc:
{
"projects": {
"default": "<YOUR_FIREBASE_ID>"
}
}
Deploying Your Site
firebase deploy