Project Structure
Front-end module project structure
Overview
Before starting with the Module code, ensure your local development environment is set up. You can refer to the local development setup guide link given below for detailed instructions.
Steps
Follow the steps given below to create the project structure.
Once you have cloned the repository from Digit-Frontend, do the following.
Go to
micro-ui-internals → packages → modules.Create a new folder with module's name , For example (Sample).
Create a folder called src and add the components , configs, hooks and pages inside that.
The project structure should be as in the image below:

After creating the new
Samplemodule, we need to create apackage.jsonfile for the module, specifying the module name, version, scripts, and required dependencies.
Refer to the file here - Package.json
The next step is to initialise the Dependency, refer here to learn more about the setup
Overview
Before you begin working on the module, ensure that your local development environment is properly set up. Refer to the Local Development Setup Guide provided below for detailed configuration steps.
This section specifically covers React 19. Make sure the branch you are working on is configured with React 19 compatible dependencies. You may refer to the console branch, which has already been fully migrated to React 19.
Steps
Follow the steps given below to create the project structure.
Once you have cloned the repository from Digit-Frontend, do the following.
Go to
micro-ui-internals → packages → modules.Create a new folder with module's name , For example (Sample).
Create a folder called src and add the components , configs, hooks and pages inside that.
The project structure should be as in the image below:

After creating the new
Samplemodule, we need to create apackage.jsonfile for the module, specifying the module name, version, scripts, and required dependencies.
We'd also require a webpack config file, so create a webpack.config.js file. Initial configuration should look something like this :
We need to add a .babelrc file
{ "presets": ["@babel/preset-env", "@babel/preset-react"] }
The next step is to initialise the Dependency, refer here to learn more about the setup
Last updated
Was this helpful?