Skip to content

Advanced customization


NodeJS and NPM

NodeJS is the platform needed for the ReactJS development.

The devportal user interface can be customized simply without touching the React codebase or CSS for most common cases. But for advanced use cases, it's required to modify the react code base. The API Manager distribution does not ship the React code base with it. You need to download it separately from the following URL. Note that, 349 is the tag number related to 3.0 release.

  1. Extract the source code.

  2. Copy and replace /repository/deployment/server/jaggeryapps/devportal/ folder from ‎⁨carbon-apimgt⁩/features⁩/apimgt⁩/⁩/src⁩/main⁩/resources⁩/devportal/.

  3. Navigate to /repository/deployment/server/jaggeryapps/devportal/ in a terminal and run the following command.

npm ci
4. Run the following to start the npm build. Note that it will continuously watch for any changes and rebuild the project.
npm run build:dev
5. If you are planning to completely rewrite the UI, then it's OK to start making changes for devportal/source/. But if you want to override a certain React Component / File from source/src/ folder, you need to do it in devportal/override/src folder. You do not have to copy the entire directory, only copy the desired file/files.


Following will override the API Documentation component and Overview components.

└── src
    ├── Readme.txt
    └── app
        └── components
            └── Apis
                └── Details
                    ├── Documents
                    │   └── Documentation.jsx
                    └── Overview.jsx


When you are doing active development, the watch mode is working with the overridden files. But adding new files and directories will not trigger a new webpack build.