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 [email protected]:karanchoudhxry/firebase-auth-app.git
- Change the working directory
cd firebase-auth-app
- Install dependencies
npm install
It 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.