As developers, we understand the need for efficiency and convenience when working on SAP DMC POD Plugins. Traditionally, the process involved building and deploying plugins, often leading to delays and a less-than-optimal development experience. But there’s a new solution in town – the DMC POD Plugin local development environment.
In the past, developing SAP DMC POD Plugins meant building, deploying, and then waiting to see the results. It was a process that sometimes made experimentation and rapid iteration quite challenging. But we’ve changed the game.
This local development environment is built upon a Yeoman generator that extends the work of our colleague, @kevin.hunter3. Here’s what you can expect from it:
No more waiting for deployments! With this local development environment, you can instantly see the effects of your changes. This real-time feedback streamlines your development process, allowing for faster progress and decision-making.
This environment integrates smoothly with both public and internal APIs. This means you can work with real data right in your local setup. No more juggling test environments or dealing with data transfers – everything is at your fingertips.
We’ve added a set of handy utility methods, including getPlant
, getResource
, getUser
, and more. These utilities simplify your development tasks and reduce the need for repetitive code.
To handle asynchronous operations more effectively, we’ve introduced promise-based Ajax requests. This results in cleaner and more readable code.
Now, let’s explore how to get started with this local development environment:
Before diving in, ensure you have the following configurations handy:
generator-dmcpodplugin-local
using npm:
npm install -g yo
npm install -g generator-dmcpodplugin-local
yo dmcpodplugin-local
If you’re using BTP for plugin development, you can skip this step as BTP already includes pre-installed build and deploy tools.
If you’re using a local system and VS Code, you can follow these optional steps:
Windows Users:
choco install make
Mac Users:
brew install make
Common Steps:
npm install -g mbt
cf install-plugin multiapps
npm run start
npm run build
This will generate a new .mtar
file in the ‘mta_archives’ folder.
npm run login
You can set the default org and space by specifying additional arguments in the ‘package.json’ file.
npm run deploy
If you want to run build and deploy commands together, use:
npm run bd
5. Follow the blog post post to configure the Pod plugin in SAP DMC
Check my git repository for complete Documentation.
That’s it! You’re now ready to streamline your SAP DMC POD Plugin development using this local development environment. Enjoy the coding!