1.3.53 • Published 2 months ago

@primeanalytiq/emberflow v1.3.53

Weekly downloads
-
License
-
Repository
github
Last release
2 months 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

2 months ago

1.3.51

2 months ago

1.3.52

2 months ago

1.3.50

3 months ago

1.3.49

3 months ago

1.3.43

4 months ago

1.3.46

4 months ago

1.3.47

4 months ago

1.3.44

4 months ago

1.3.45

4 months ago

1.3.48

4 months ago

1.3.42

4 months ago

1.3.39

5 months ago

1.3.40

5 months ago

1.3.41

5 months ago

1.3.36

5 months ago

1.3.37

5 months ago

1.3.38

5 months ago

1.3.32

5 months ago

1.3.35

5 months ago

1.3.33

5 months ago

1.3.34

5 months ago

1.3.31

5 months ago

1.3.30

5 months ago

1.3.29

5 months ago

1.3.28

5 months ago

1.3.27

5 months ago

1.3.26

5 months ago

1.3.25

5 months ago

1.3.24

5 months ago

1.3.23

5 months ago

1.3.22

5 months ago

1.3.21

5 months ago

1.3.20

5 months ago

1.3.19

5 months ago

1.3.18

5 months ago

1.3.17

5 months ago

1.3.16

5 months ago

1.3.15

5 months ago

1.3.14

5 months ago

1.3.13

5 months ago

1.3.12

6 months ago

1.3.11

6 months ago

1.3.10

6 months ago

1.3.9

6 months ago