Install Dependency

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.

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",

 

micro-ui-internals/package.json
  • 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",

 

 

example/package.json

 

  • 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.