Skip to content

lrob/firebase-nodejs

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

firebase-nodejs

This repository implements the firebase authentication example shown in this tutorial. The original example only allows Google authentication, this example has been enriched with the Email/Password authentication method. In order to run the example you need to install Docker and docker-compose and take the following steps:

  • Clone this respository
  • Create the file server/src/firebase/credentials.json following the instructions contained in the aforementioned tutorial
  • Create the file frontend/src/firebaseConfig.json with the configuration that you app needs to contact the firebase authentication server. In the tutorial this information are shown in the screenshot titled Add firebase to your app. The json file will result in something like
{
    "apiKey": "your-apiKey",
    "authDomain": "your-authDomain",
    "projectId": "your-projectId",
    "storageBucket": "your-storageBucket",
    "messagingSenderId": "your-messagingSenderId",
    "appId": "your-appId"
}  
  • Then run docker-compose build
  • And finally docker-compose up

When the server and the frontend finish to load you should be able to contact the frontend at this address

About

How to handle authentication on Node JS using Firebase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published