1.3.53 • Published 2 years ago

@primeanalytiq/emberflow v1.3.53

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

1.3.51

2 years ago

1.3.52

2 years ago

1.3.50

2 years ago

1.3.49

2 years ago

1.3.43

2 years ago

1.3.46

2 years ago

1.3.47

2 years ago

1.3.44

2 years ago

1.3.45

2 years ago

1.3.48

2 years ago

1.3.42

2 years ago

1.3.39

3 years ago

1.3.40

3 years ago

1.3.41

3 years ago

1.3.36

3 years ago

1.3.37

3 years ago

1.3.38

3 years ago

1.3.32

3 years ago

1.3.35

3 years ago

1.3.33

3 years ago

1.3.34

3 years ago

1.3.31

3 years ago

1.3.30

3 years ago

1.3.29

3 years ago

1.3.28

3 years ago

1.3.27

3 years ago

1.3.26

3 years ago

1.3.25

3 years ago

1.3.24

3 years ago

1.3.23

3 years ago

1.3.22

3 years ago

1.3.21

3 years ago

1.3.20

3 years ago

1.3.19

3 years ago

1.3.18

3 years ago

1.3.17

3 years ago

1.3.16

3 years ago

1.3.15

3 years ago

1.3.14

3 years ago

1.3.13

3 years ago

1.3.12

3 years ago

1.3.11

3 years ago

1.3.10

3 years ago

1.3.9

3 years ago