- Creates an instance of FireCRUD
FireCRUD
- createUser(userId)
Adds a user to the firebase user branch
- generateID(idLength) ⇒
string
Generates a random user ID
- "userChanges"
Main event listener that handles all major updates
- "userDeleted"
Deletes the row when a user has been deleted
- "userEdited"
Deletes original copy of a row when a child has been edited (The edited version will be appended in another event listener)
- "deletingClients"
Handles deletion of a user in a row
- "editingClients"
Handles editing of a user in a row
- "createUser"
Handles user creation
- "userDeletionEditing"
Confirm deletion or editing event
A CRUD interface for Firebase to manage clients/users
Param | Type | Description |
---|---|---|
firebaseUserURL | String |
the link to the user branch in the Firebase. |
columns | Object |
the organization of each of the columns. |
Adds a user to the firebase user branch
Kind: global function
Param | Type | Description |
---|---|---|
userId | string |
Optional, the ID used to identify the user |
Generates a random user ID
Kind: global function
Returns: string
- id - the ID that the user will be referenced by in Firebase
Param | Type | Description |
---|---|---|
idLength | integer |
the length of the ID that is generated (The larger the length, the more secure the users' branch is) |
Main event listener that handles all major updates
Deletes the row when a user has been deleted
Deletes original copy of a row when a child has been edited (The edited version will be appended in another event listener)
Handles deletion of a user in a row
Handles editing of a user in a row
Handles user creation
Confirm deletion or editing event
Kind: event emitted