Firebase domain setup with GoDaddy

Aditi Tiwari
Aug 31, 2018 · 2 min read

I recently set up a domain name using go daddy for one of my web apps and deployed it through firebase.

I’m sure you will get lot of answers to this question if you google it but what I realised is that most of the answers are incomplete and there is no right sequence of instructions also, so thought to write my answer to this problem.

Step 1 : Through terminal

npm install -g firebase-tools

Step 2: Login to firebase console and create your new project

Step 3: Through terminal

$ firebase login

it will throw a message “you are already logged in as ‘xxxxx.gmail.com’ ”

Step 4: Go to your console and click on the project you need to link it to Godaddy

Step 5: Go to hosting tab and click on connect domain

Step 6: A dialogue box will appear asking you your domain name, enter the custom domain that you own.

Step 7: Next it will give you a TXT record, copy it on clipboard.

Step 8: Login to your go daddy account and go to your domains

Step 9: Next go to DNS and add the TXT type record, if there are any existing TXT records available delete them and add new, the one which you have coppied.

Step 10: Now go back to Firebase console and verify your domain name, it will give you two more A type records, add these also in the same way as step 6 to go daddy.

Step 11: Come back to firebase and click finish

Step 12: Now once the setup is ready you can start working if you have not until now.

Step 13: Through terminal

$ firebase init

you will be asked if you need to hosting, storage, database, firestore, functions

select hosting(with space tab)if you do not need anything else press enter

firebase will be initiated

Step 14: Through terminal

$ firebase deploy

Your website will be hosted and if you have not worked on it then it will show you the default page of firebase hosting.

cheers :)

Aditi Tiwari

Written by

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade