Yet Another Login Example using Vuejs and Firebase.
npm install
-
Ensure
firebase
andfirebase-tools
are installed:npm install firebase firebase-tools
-
Create a Firebase account and create a new project in the Firebase Console.
-
Create a new web app in your project and import the your provided
firebaseConfig
object into your local repository:Create a new file named
firebase-config.js
at the project root with the following code below:const firebaseConfig = { // make sure to add your firebaseConfig members here! // apiKey: // authDomain: // etc... }; export function getFirebaseConfig() { return firebaseConfig; };
-
Initialize Firebase and Auth Emulator
firebase init
Select your existing project, auth emulator, and configure emulator setup using the prompts provided.
npm run serve
firebase emulators:start
npm run build
npm run lint