1.3.53 • Published 1 year ago

@primeanalytiq/emberflow v1.3.53

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

Emberflow

Emberflow is a library for Firebase Functions that simplifies the process of setting up security, validation, and business logic.

Usage

To use Emberflow in your Firebase Functions project, follow these steps:

  1. Install Emberflow in your 'functions' folder:
npm install emberflow
  1. Import and initialize Emberflow in your Firebase Functions index.ts file:
import * as admin from "firebase-admin";
import {dbStructure, Entity} from "./db-structure";
import {initializeEmberFlow} from "emberflow";
import {securityConfig} from "./security";
import {validatorConfig} from "./validators";
import {logics} from "./business-logics";

admin.initializeApp();
const {functionsConfig} = initializeEmberFlow(
  admin,
  dbStructure,
  Entity,
  securityConfig,
  validatorConfig,
  logics
);

Object.entries(functionsConfig).forEach(([key, value]) => {
  exports[key] = value;
});

This example assumes you have the necessary files (db-structure.ts, security.ts, validators.ts, and business-logics.ts) in your project. For reference on how to set up these files, you can check the src.sample-custom folder in the Emberflow library.

1.3.53

1 year ago

1.3.51

1 year ago

1.3.52

1 year ago

1.3.50

1 year ago

1.3.49

1 year ago

1.3.43

1 year ago

1.3.46

1 year ago

1.3.47

1 year ago

1.3.44

1 year ago

1.3.45

1 year ago

1.3.48

1 year ago

1.3.42

1 year ago

1.3.39

2 years ago

1.3.40

2 years ago

1.3.41

2 years ago

1.3.36

2 years ago

1.3.37

2 years ago

1.3.38

2 years ago

1.3.32

2 years ago

1.3.35

2 years ago

1.3.33

2 years ago

1.3.34

2 years ago

1.3.31

2 years ago

1.3.30

2 years ago

1.3.29

2 years ago

1.3.28

2 years ago

1.3.27

2 years ago

1.3.26

2 years ago

1.3.25

2 years ago

1.3.24

2 years ago

1.3.23

2 years ago

1.3.22

2 years ago

1.3.21

2 years ago

1.3.20

2 years ago

1.3.19

2 years ago

1.3.18

2 years ago

1.3.17

2 years ago

1.3.16

2 years ago

1.3.15

2 years ago

1.3.14

2 years ago

1.3.13

2 years ago

1.3.12

2 years ago

1.3.11

2 years ago

1.3.10

2 years ago

1.3.9

2 years ago