Skip to content

rdxkeerthi/login-firebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase Authentication

My Skills

Documentation

Authenticate with Firebase using Password-Based Accounts using Javascript

Sign in a user with an email address and password

Setup

Clone this repo

git clone https://github.com/rdxkeerthi/login-firebase.git

cd login-firebase

Install Dependencies

npm install

Run the App

npm start

Firebase Setup

Create a new project in the Firebase console Create a new web app Get the config object from the Firebase console Create a new file called script.js in the root of your project Add the following code to script.js

const firebaseConfig = {

apiKey: "ADD YOUR KEY ",

authDomain: "ADD YOUR DOMAIN",

databaseURL: "YOUR URL",

projectId: "YOUR ID",

storageBucket: "YOUR DATA",

messagingSenderId: "YOUR MESSAGE",

appId: "YOUR API ID",

measurementId: "YOUR M ID"

};

Database Rules

{
  "rules": {
    "user":{
      "$uid":{
        ".read": "$uid === auth.uid",
          ".write": "$uid === auth.uid"
      }
    }
  }
}

Usage

Sign in a user with an email address and password

Host

Host the app on a server firebase My Skills

sudo apt-get update

sudo apt-get upgrade

sudo npm install -g firebase-tools

firebase login

firebase use --add [your id]

Deploy

firebase init hosting

firebase deploy --only hosting

firebase deploy

Firebase Hosting

Firebase hosting is a service that allows you to host your web app on a custom domain. You can deploy your app to Firebase hosting using the Firebase CLI.

Live

LIVE NOW

About

Sign in a user with an email address and password || Authenticate with Firebase using Password-Based Accounts

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages