npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@thzero/library_client_firebase

v0.18.3

Published

![GitHub package.json version](https://img.shields.io/github/package-json/v/thzero/library_client_firebase) ![David](https://img.shields.io/david/thzero/library_client_firebase) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](http

Downloads

211

Readme

GitHub package.json version David License: MIT

library_client_firebase

Requirements

NodeJs

NodeJs version 18+

Installation

NPM

Configuration

Firebase

Google Firebase (https://firebase.google.com) provides the social based authentication; currently only Google social accounts are supported.

  • Add a new project
    • If not already completed when setting up the server application
  • Setup Authentication, enabled Google in the Sign-in method.
    • If not already completed when setting up the server application
  • Get the Firebase SDK configuration
    • Go to Project Overview->Settings->General
    • Click Add App and select Web
      • Click Firebase SDK snippet, select *Config
      • Select the JSON object and store it
      • The contents of the JSON object will be stored as key/value pairs in the external/firebase confib object (below)
  • Supports Firebase Analytics.
    • Go to Project Overview->Settings->Integrations
      • Enable the Google Analytics.
      • Copy the 'measurementId' key//value pair into the external/firebase config object (below)

Application Configuration

  • In the configuration files (development.json and production.json) of the application
    • Add the following onfiguration block to contain the firebase key.
	,
	"external": {
		"firebase": <firebase key JSON object from above goes here>
	}

Locales

Merge the following to the 'src/locals/en/index.json' file:

{
	"admin": {
		"users": "Users"
	},
	"forms": {
		"externalId": "External Id",
		"news": {
		  "requiresAuth": "Requires Authentication",
		},
		"role": "Role",
		"roles": "Roles",
	},
	"news": {
		"requiresAuth": "Authenticated",
	},
	"users": {
		"actions": "Actions",
		"externalId": "External Id",
		"id": "Id",
		"name": "Name",
		"role": "Role",
		"roles": "Roles"
	}
 }

Main.js

  • Add the following import statement to the 'main.js' file.
import bootStarter from '@thzero/library_client_firebase/boot/starter';
  • Adjust the start method of the 'main.js' file to iclude 'bootAuth' as the last parameter.
start(app, router, store, vuetify, [ ... ], bootStarter);

Route.js

Routes can be denoted as not requiring authentication. To do so, tag on the route the following in the 'meta node'.

    requiresAuth: false

It is advised that the following routes should have authentication turned off.

  • Home
  • About
  • Open Source
  • Auth
  • Not Found
  • Blank

It is advised that the following routes should have authentication turned on.

  • Admin
  • Settings
  • Support
  • Any application routes that require authenticated users.