Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


1) Which Node Version using in Digit UI?
- We Are using Node Version - >=10
2) Required setup things?
- i) Install Vs Code -

...

Postman for windows

Postman for linux

32) How to install Yarn?

- Install Yarn -

...

Code Block
npm install --global yarn
yarn --version


43) How To add Globalconfig in Digit UI Environment?
- Local Environment:-
To enable it into local development we need to add the javascript code block of globalconfig.js into the index.html

...

Code Block
employee:
  dashboard-url: "https://dashboard-pbuat.egovernments.org/s/w---s/app/kibana#/dashboard/4e687470-f3c7-11e8-8d09-b151e2b1cf8e?embed=true&_g=(refreshInterval%3A(pause%3A!f%2Cvalue%3A300000)%2Ctime%3A(from%3Anow-15m%2Cmode%3Aquick%2Cto%3Anow))"
  custom-js-injection: |
    sub_filter.conf: "
      sub_filter  '<head>' '<head>
      <script src=https://s3.ap-south-1.amazonaws.com/egov-uat-assets/globalConfigs.js type=text/javascript></script>
      ';"

citizen:
  custom-js-injection: |
    sub_filter.conf: "
      sub_filter  '<head>' '<head>
      <script src=https://s3.ap-south-1.amazonaws.com/egov-uat-assets/globalConfigs.js type=text/javascript></script>
      ';"

digit-ui:
  custom-js-injection: |
    sub_filter.conf: "
      sub_filter  '<head>' '<head>
      <script src=https://s3.ap-south-1.amazonaws.com/egov-uat-assets/globalConfigs.js type=text/javascript></script>
      ';"

54) How to Register New Module in Digit UI?
- Creating config into mdms:-

...

Suppose your module name is BR(Birth-Registration) then change the module and code as BR. and update the citymodule.json file.
or

Install Dependency

65) In Digit UI Where do we need to add the .env file?
- Add the .env file in the example folder - 

...

Code Block
SKIP_PREFLIGHT_CHECK=true
REACT_APP_USER_TYPE=CITIZEN
REACT_APP_EMPLOYEE_TOKEN=c835932f-2ad4-4d05-83d6-49e0b8c59f8a
REACT_APP_CITIZEN_TOKEN=7cd58aae-30b3-41ed-a1b3-3417107a993c
REACT_APP_PROXY_API=https://dev.digitcompanyname.org
REACT_APP_PROXY_ASSETS=https://dev.digitcompanyname.org
REACT_APP_GLOBAL=https://s3.ap-south-1.amazonaws.com/egov-dev-assetspath/to/public/s3/bucket/globalConfigs.js
REACT_APP_CENTRAL_GLOBAL=https://path/to//egov-central-instance-assets.s3.ap-south-1.amazonaws.compublic/s3/bucket/statebglobalConfigs.js
REACT_APP_QA_GLOBAL=https://path/s3.ap-south-1.amazonaws.comto/public/s3/bucket/egov-dev-assets/globalConfigs.js
REACT_APP_UAT_GLOBAL=https://path/s3.ap-south-1.amazonaws.comto/public/s3/bucket/egov-uat-assets/globalConfigs.js
REACT_APP_STATEB_GLOBAL=https://path/to//egov-central-instance-assets.s3.ap-south-1.amazonaws.compublic/s3/bucket/statebglobalConfigs.js
staging=https://staging.digitcompanyname.org

 

If the User is an Employee then we configure the .env as follows:-

Code Block
SKIP_PREFLIGHT_CHECK=true
REACT_APP_USER_TYPE=EMPLOYEE
REACT_APP_EMPLOYEE_TOKEN=c835932f-2ad4-4d05-83d6-49e0b8c59f8a
REACT_APP_CITIZEN_TOKEN=7cd58aae-30b3-41ed-a1b3-3417107a993c
REACT_APP_PROXY_API=https://dev.digitcompanyname.org
REACT_APP_PROXY_ASSETS=https://dev.digitcompanyname.org
REACT_APP_GLOBAL=https://path/to/public/s3.ap-south-1.amazonaws.com/egov-dev-assets/bucket/globalConfigs.js
REACT_APP_CENTRAL_GLOBAL=https://egov-central-instance-assets.s3.ap-south-1.amazonaws.compath/to/public/s3/bucket/statebglobalConfigs.js
REACT_APP_QA_GLOBAL=https://s3.ap-south-1.amazonaws.compath/to/public/s3/bucket/egov-dev-assets/globalConfigs.js
REACT_APP_UAT_GLOBAL=https://path/to/public/s3.ap-south-1.amazonaws.com/bucket/egov-uat-assets/globalConfigs.js
REACT_APP_STATEB_GLOBAL=https://egov-central-instance-assets.s3.ap-south-1.amazonaws.compath/to/public/s3/bucket/statebglobalConfigs.js
staging=https://staging.digitcompanyname.org