Creating config into mdms:-
If you are creating a new module then, first we need to enable that module as true in citymodule.json
update the Module in citymodule.json.
{ "module": "BR", "code": "BR", "active": true, "order": 1, "tenants": [ { "code": "pb.jalandhar" }, { "code": "pb.nawanshahr" }, { "code": "pb.amritsar" } ] },
Suppose your module name is BR(Birth-Registration) then change the module and code as BR. and update the citymodule.json file.
Install the following package dependency.
yarn add react-hook-form yarn add react-dom yarn add react yarn add react-i18next yarn add react-query yarn add react-redux yarn add react-router-dom yarn add react-table yarn add redux yarn add redux-thunk
After Creating the project structure add the required dependency as well.
Package.Json:-
We need to add or update the module dependency in three places.Micro-ui-internals:-
Now open the micro-ui-internals package.json file and update the dependency. e.g:- If we need to add br module then will add these dependencies.
"dev:br": "cd packages/modules/br && yarn start", "build:br": "cd packages/modules/br && yarn build",
example:-
Now open the example package.json file and update the dependency. e.g:- If we need to add br module then will add these dependencies."@egovernments/digit-ui-module-br":"^1.4.0",
Web:-
Now open the Web package.json file and update the dependency. e.g:- If we need to add br module then will add these dependencies.
"@egovernments/digit-ui-module-br":"1.5.4",