@ejada/ejada-eversa-core

0.2.12 • Public • Published

##Main SETUP in app constructor

  • we have to add api configuration
  • we have to add component configuration
  • we have to add component functions IDs configuration(to check against user entitlements functions)

#SETUP - STEP2

  • we have to set the user authentication
  • we have to get user details.
  • we have to get user entitlements
  • we have to set user entitlement in the core using "setUserEntitlements" function (from the core)
  • we have to call router initialize function "initializeRoutes" (from the core)
  • we have to set user details using "SetLoggedInUser" action (redux action)

#Configuration Folder Structure we should have the following files for each vertical: -apiConfig.js - which contain the "api urls", request processing function & response processing function -componentConfig.js - which contain the each component configuration. -componentFunctionIDs.js - which cotains the functions IDs. will be used for entitlement

# when we call the api to get the data we have to return the data as below

  • {
  • pageNumber:number,
    
  • totalPages:number,
    
  • totalRecords:number,
    
  • listData:Array<{}>
    
  • }

#localStorage values

  • authToken: will be used to store authentication token after login
  • rememberMeID: it will be used in login. it will contain the logged in user id

Readme

Keywords

none

Package Sidebar

Install

npm i @ejada/ejada-eversa-core

Weekly Downloads

50

Version

0.2.12

License

none

Unpacked Size

3.11 MB

Total Files

123

Last publish

Collaborators

  • altamimiejada
  • bayyash
  • kaljaabari