The source code for this blog is available on GitHub.

Blog.

How to add Firebase Firestore to your chrome extension

Cover Image for How to add Firebase Firestore to your chrome extension
Code Daddy
Code Daddy
Posted underSoftware Development



In previous version of manifest which was manifest version 2, it was allowed to pull scripts from external sources which is we could make use of CDN links but now in manifest version 3 we can no longer do that for security reasons. Since firebase provides us an SDK CDN to use, we can’t make use of it in chrome extension MV3. I found out 2 ways to do it, one is to download older version of SDK or to make and API.
In this video, I have shown you how to create an API, host it, and then use it in our chrome extension to integrate firestore database. Hope you will like this video.
This is part 6 of my chrome extensions playlist.

šŸ‘‰Chrome extension docs: https://developer.chrome.com/docs/extensions/mv3/intro/
šŸ‘‰Firebase API docs: https://firebase.google.com/docs/reference/admin/node
šŸ‘‰Heroku CLI: https://devcenter.heroku.com/articles/heroku-cli
šŸ‘‰Chrome extensions Playlist: https://www.youtube.com/watch?v=DtCUq9_Uyj4&list=PLXT4oy8Eb6MoOmOEcFyvbbJ-DHeduDdwl
šŸ‘‰Advanced concepts of chrome extension: https://youtu.be/tOHpufRbsJc

šŸ•’ Timestamps: šŸ•’
00:00 Introduction.
01:59 Setting up API & Firebase.
06:56 Completing & testing API.
09:53 Deploying API on Heroku.
15:29 Creating chrome extension.
19:37 Final testing.

⭐ Topics covered: ⭐
1) Node.js API development using firebase-admin module.
2) Node.js API deployment on heroku.
3) Using Heroku CLI.
4) Fetching data from API in extension.

⭐ Commands : ⭐
1) To create API:
• npm init -y
• npm i express cors firebase-admin
• create index.js

2) Host API on heroku:
• heroku -v
• heroku login
• git init
• create .gitignore & Procfile
• heroku create
• git add.
• git commit -m “Adding files”
• git push heroku master

For any queries, Feel free to connect with me on
ā–ŗE-mail id – atharvvarshney07@gmail.com
ā–ŗLinked in – https://www.linkedin.com/in/atharv-varshney/
ā–ŗTwitter – https://twitter.com/Atharvvarshney7

Music used in this video :
Pixel Pig by Di Young: https://youtu.be/TiC7_167hQ0

source

TaggedAPIchome extensionChrome extension databasecontent scriptsFirebasefirebase adminFirestoreherokuheroku clijavascript


More Stories

Cover Image for How to Convert String to DateTime using Python Codes | Python Programs Tutorial

How to Convert String to DateTime using Python Codes | Python Programs Tutorial

In this video, learn How to Convert String to DateTime using Python Codes | Python Programs Tutorial. Find all the videos of the 100+ Python Programs in this playlist: https://www.youtube.com/watch?v=78FsbjYSWIU&list=PLjVLYmrlmjGf3jtxG8lSo-zaPktQ7YbUw GitHub Link: https://github.com/wscubetech-india/Python-Programs-/blob/main/StringtoDatetime.py šŸ’Ž Get Access to Premium Videos and Live Streams: https://www.youtube.com/channel/UC0T6MVd3wQDB5ICAe45OxaQ/join WsCube Tech is a leading Web, Mobile App & Digital Marketing company, […]

Code Daddy
Code Daddy
Cover Image for How to Install Pega Customer Decision Hub in Pega Personal Edition

How to Install Pega Customer Decision Hub in Pega Personal Edition

Here is the detailed video on How to Install and configure Pega Customer Decision Hub in Pega Personal edition

Code Daddy
Code Daddy