Boilerplate Project for Google Authentication with Firebase
π Homepage
Youβll need to have Node 10.16.0 or later version on your local development machine. We recommend using the latest LTS version.
To create a new app, you may choose one of the following methods:
- Install the package
npm i firebase-auth-app- Create a project using Firebase-Auth-App CLI
firebase-auth-app- Install dependencies
npm install- Clone the repository
git clone git@github.com:karanchoudhxry/firebase-auth-app.git- Change the working directory
cd firebase-auth-app- Install dependencies
npm installIt will create a directory called firebase-auth-app inside the current folder.
Inside that directory, it will generate the initial project structure and install the required dependencies:
Copy and paste your configuration from your Firebase project's dashboard into index.html
It should look something like this
var firebaseConfig = {
apiKey: "API_KEY",
authDomain: "PROJECT_ID.firebaseapp.com",
databaseURL: "https://PROJECT_ID.firebaseio.com",
projectId: "PROJECT_ID",
storageBucket: "PROJECT_ID.appspot.com",
messagingSenderId: "SENDER_ID",
appId: "APP_ID",
measurementId: "G-MEASUREMENT_ID",
};
Enable the Google Sign-Up Method under the Authentication/Sign-In Method/Sign-In Providers
Add the domain where the app is to be hosted under the Authentication/Sign-In Method/Authorized Domains
π€ Karan Choudhary
- Github: @karanchoudhxry
Contributions, issues and feature requests are welcome! Feel free to check issues page.
Give a βοΈ if this project helped you!
Copyright Β© 2021 Karan Choudhary.
This project is MIT licensed.
.png?alt=media&token=c004aaad-3a8f-4f17-b725-fb86a58b6787)
.png?alt=media&token=31bb0f30-8955-47a4-9299-367a70cbd351)