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 the 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.
Last updated
Was this helpful?