0.18.3 • Published 20 days ago

@thzero/library_client_firebase v0.18.3

Weekly downloads
171
License
MIT
Repository
github
Last release
20 days ago

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.
0.18.3

20 days ago

0.18.2

2 months ago

0.18.1

3 months ago

0.17.24

3 months ago

0.17.23

4 months ago

0.17.22

4 months ago

0.17.21

4 months ago

0.17.20

5 months ago

0.17.12

10 months ago

0.17.14

7 months ago

0.17.13

9 months ago

0.17.16

6 months ago

0.17.15

7 months ago

0.17.18

6 months ago

0.17.17

6 months ago

0.17.19

6 months ago

0.17.10

11 months ago

0.17.11

11 months ago

0.17.7

1 year ago

0.17.8

1 year ago

0.17.9

1 year ago

0.17.4

1 year ago

0.17.5

1 year ago

0.17.6

1 year ago

0.17.2

1 year ago

0.17.3

1 year ago

0.16.15

1 year ago

0.16.10

1 year ago

0.16.11

1 year ago

0.16.14

1 year ago

0.16.12

1 year ago

0.16.13

1 year ago

0.16.7

1 year ago

0.16.8

1 year ago

0.16.9

1 year ago

0.16.3

1 year ago

0.16.4

1 year ago

0.16.5

1 year ago

0.16.6

1 year ago

0.16.1

2 years ago

0.16.2

2 years ago

0.15.16

2 years ago

0.15.15

2 years ago

0.15.13

2 years ago

0.15.14

2 years ago

0.15.5

2 years ago

0.15.6

2 years ago

0.15.7

2 years ago

0.15.8

2 years ago

0.15.9

2 years ago

0.15.10

2 years ago

0.15.12

2 years ago

0.15.4

2 years ago

0.15.2

3 years ago

0.15.3

3 years ago

0.15.1

3 years ago

0.14.16

3 years ago

0.14.15

3 years ago

0.14.13

3 years ago

0.14.14

3 years ago

0.14.12

3 years ago

0.14.11

3 years ago

0.14.9

3 years ago

0.14.6

3 years ago

0.14.7

3 years ago

0.14.8

3 years ago

0.14.2

3 years ago

0.14.4

3 years ago

0.13.16

3 years ago

0.13.15

3 years ago

0.13.12

3 years ago

0.13.14

3 years ago

0.13.11

3 years ago

0.13.10

3 years ago

0.13.9

3 years ago

0.13.8

3 years ago

0.13.7

3 years ago

0.13.6

3 years ago

0.13.5

3 years ago

0.13.4

3 years ago

0.13.2

3 years ago

0.12.6

3 years ago

0.12.5

3 years ago

0.12.4

3 years ago

0.12.3

3 years ago

0.12.2

3 years ago

0.12.1

3 years ago

0.12.0

3 years ago

0.11.0

3 years ago

0.10.11

3 years ago

0.10.3

4 years ago

0.10.0

4 years ago

0.9.8

4 years ago

0.9.7

4 years ago

0.8.7

4 years ago

0.8.5

4 years ago

0.8.2

4 years ago

0.8.1

4 years ago

0.7.30

4 years ago

0.7.29

4 years ago

0.8.0

4 years ago

0.7.28

4 years ago

0.7.27

4 years ago

0.7.24

4 years ago

0.7.25

4 years ago

0.7.23

4 years ago

0.7.22

4 years ago

0.7.21

4 years ago

0.7.20

4 years ago

0.7.19

4 years ago

0.7.17

4 years ago

0.7.16

4 years ago

0.7.9

4 years ago

0.7.15

4 years ago

0.7.8

4 years ago

0.7.7

4 years ago

0.7.6

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.6.14

4 years ago

0.6.16

4 years ago

0.6.13

4 years ago

0.6.12

4 years ago

0.6.11

4 years ago