/
Install Dependency

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.

 

 

Related content

Register Module and Routing
Register Module and Routing
More like this
Import required components
Import required components
More like this
Install Dependency and Run Application
Install Dependency and Run Application
More like this
ADD Configuration
ADD Configuration
Read with this
Project Structure
Project Structure
More like this
Monitoring and tracing
Monitoring and tracing
Read with this