0.18.11 • Published 3 months ago

@thzero/library_client_firebase v0.18.11

Weekly downloads
171
License
MIT
Repository
github
Last release
3 months 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.11

3 months ago

0.18.10

4 months ago

0.18.9

6 months ago

0.18.8

8 months ago

0.18.4

1 year ago

0.18.5

11 months ago

0.18.6

10 months ago

0.18.7

9 months ago

0.18.3

1 year ago

0.18.2

1 year ago

0.18.1

1 year ago

0.17.24

1 year ago

0.17.23

1 year ago

0.17.22

1 year ago

0.17.21

1 year ago

0.17.20

2 years ago

0.17.12

2 years ago

0.17.14

2 years ago

0.17.13

2 years ago

0.17.16

2 years ago

0.17.15

2 years ago

0.17.18

2 years ago

0.17.17

2 years ago

0.17.19

2 years ago

0.17.10

2 years ago

0.17.11

2 years ago

0.17.7

2 years ago

0.17.8

2 years ago

0.17.9

2 years ago

0.17.4

2 years ago

0.17.5

2 years ago

0.17.6

2 years ago

0.17.2

2 years ago

0.17.3

2 years ago

0.16.15

2 years ago

0.16.10

3 years ago

0.16.11

2 years ago

0.16.14

2 years ago

0.16.12

2 years ago

0.16.13

2 years ago

0.16.7

3 years ago

0.16.8

3 years ago

0.16.9

3 years ago

0.16.3

3 years ago

0.16.4

3 years ago

0.16.5

3 years ago

0.16.6

3 years ago

0.16.1

3 years ago

0.16.2

3 years ago

0.15.16

3 years ago

0.15.15

3 years ago

0.15.13

3 years ago

0.15.14

3 years ago

0.15.5

3 years ago

0.15.6

3 years ago

0.15.7

3 years ago

0.15.8

3 years ago

0.15.9

3 years ago

0.15.10

3 years ago

0.15.12

3 years ago

0.15.4

4 years ago

0.15.2

4 years ago

0.15.3

4 years ago

0.15.1

4 years ago

0.14.16

4 years ago

0.14.15

4 years ago

0.14.13

4 years ago

0.14.14

4 years ago

0.14.12

4 years ago

0.14.11

4 years ago

0.14.9

4 years ago

0.14.6

4 years ago

0.14.7

4 years ago

0.14.8

4 years ago

0.14.2

4 years ago

0.14.4

4 years ago

0.13.16

4 years ago

0.13.15

4 years ago

0.13.12

4 years ago

0.13.14

4 years ago

0.13.11

4 years ago

0.13.10

4 years ago

0.13.9

4 years ago

0.13.8

4 years ago

0.13.7

4 years ago

0.13.6

4 years ago

0.13.5

4 years ago

0.13.4

4 years ago

0.13.2

4 years ago

0.12.6

4 years ago

0.12.5

4 years ago

0.12.4

4 years ago

0.12.3

4 years ago

0.12.2

4 years ago

0.12.1

4 years ago

0.12.0

5 years ago

0.11.0

5 years ago

0.10.11

5 years ago

0.10.3

5 years ago

0.10.0

5 years ago

0.9.8

5 years ago

0.9.7

5 years ago

0.8.7

5 years ago

0.8.5

5 years ago

0.8.2

5 years ago

0.8.1

5 years ago

0.7.30

5 years ago

0.7.29

5 years ago

0.8.0

5 years ago

0.7.28

5 years ago

0.7.27

5 years ago

0.7.24

5 years ago

0.7.25

5 years ago

0.7.23

5 years ago

0.7.22

5 years ago

0.7.21

5 years ago

0.7.20

5 years ago

0.7.19

5 years ago

0.7.17

5 years ago

0.7.16

5 years ago

0.7.9

5 years ago

0.7.15

5 years ago

0.7.8

5 years ago

0.7.7

5 years ago

0.7.6

5 years ago

0.7.2

5 years ago

0.7.1

5 years ago

0.6.14

5 years ago

0.6.16

5 years ago

0.6.13

5 years ago

0.6.12

5 years ago

0.6.11

5 years ago