DEV Community

Cover image for Firebase,v9 Google Authentication + Documentation
David Asaolu
David Asaolu

Posted on

Firebase,v9 Google Authentication + Documentation

Hello, welcome back! Yes! Just in case, this is the first post you are opening. This post is the continuation of series.

Check out the first

So let's keep moving ๐Ÿš€

Setting Up Firebase in a React project

๐Ÿš€ Log on to Firebase console. You will need to have a Gmail account.

๐Ÿš€ Add project, follow the instructions to set it up

๐Ÿš€ Run via npm

npm i -g firebase-tools
Enter fullscreen mode Exit fullscreen mode

๐Ÿš€ Run in your create-react-app project

npm i firebase
Enter fullscreen mode Exit fullscreen mode

๐Ÿš€ You can follow this route for the setup

๐Ÿš€ At the end of the installation, you should have a firebase.js file in your project and also your package.json updated already from the installation.

firebase.js installed file

package.json React app

Google Authentication

You need to place these lines of code at the entry point of your web application or your Login component, where the user has to login to access other views or pages.

Similar to this

Login component

Check out the Documentation for other forms of Authentication

Authentication docs

Feel free to follow to be the first to read the next posts on the series.
Connect with me on
๐Ÿš€ Linkedin
๐Ÿš€ Twitter

Top comments (0)