npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-dmcpodplugin-local

v1.1.1

Published

This generator scaffolds a SAP Digital Manufacturing Cloud POD Plugin

Downloads

777

Readme

generator-dmcpodplugin-local

By Using this yomen generator you can create SAP DMC POD Plugins easy and can also run locally

Installation

First, install Yeoman and generator-dmcpodplugin-local using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-dmcpodplugin-local

Prerequisites

Keep below configurations handy before generating the templete code

  1. User Email email with access to sap dmc
  2. host your sap dmc host address. ex: 'yourhost.execution.eu20.dmc.cloud.sap'
  3. cf endpoint url cloud foundary endpoint url. you can get from your BTP subaccount page
  4. manufacturing-execution-integration server url you can find it in servece key configuration file
  5. public-api-endpoint you can find it in servece key configuration file under uaa section
  6. authorization token url you can find it in servece key configuration file under uaa section as 'url'
  7. clientid you can find it in servece key configuration file under uaa section as 'clientid'
  8. clientsecret you can find it in servece key configuration file under uaa section as 'clientsecret'

Generating Your Project

To create a new project using this generator, follow these steps:

  1. Open your terminal or command prompt.

  2. Run the generator using the following command:

yo dmcpodplugin-local
  1. The generator will prompt you to answer questions. Provide the required information, and it will generate the template code based on your responses.

Answer all the promts to generate the template code.

(optional)Installing build and deploy dependencies for vs code

if you are using BTP for developing the plugin this section is completely optional as BTP already have build and deploy tools preinstalled.

if you are using local system and vs code, then you need to install below dependecies to build the plugin and deploy it to BTP Space.

steps for Windows Users

  1. open command promt
  2. check choco exist in windows by running choco -v command
  3. if exist run below command in Power shell to install make. in case not exist download and install choco from official website
  4. run choco install make to install make

steps for Mac Users

  1. Open terminal
  2. Install make by running brew install make

Common steps

  1. Download and Install clound foundary cli from official git repo
  2. Install dependency mbt and multiapps
    npm install -g mbt
    cf install-plugin multiapps
  1. Create new Folder and Open it in Vs code
  2. Open new terminal and run below command and answer all the promts to generate the template code
yo dmcpodplugin-local
  1. Once the template is ready, open terminal and run npm run start. this will start the application in localhost.
  2. To Build the App, run npm run build. This will build the app and genrate new .mtar file in 'mta_archives' folder
  3. Before deploying the app, we have to login to cloud foundary. So run npm run login command and give your password and then select your org and space. you can default the org and space by mentioning addtional arguments to command in package.json file like below. for more commands check cf docs
{
    .......
    "scripts":{
        .................
        "login":"cf login -a https://api.cf.eu10.hana.ondemand.com/ -u [email protected] -o <your org> -s <your dev space>"
        ...................
    }
    ......
}
  1. run npm run deploy to deploy the plugin to BTP Space.
  2. you can run build and deploy commands together using npm run bd command.
  3. Please follow the blog to configure the plugin in SAP DMC.

Note: cf login session is valid until you kill the terminal. So you don't need to run npm run login command everytime you deploy the app.

License

his generator is open-source software and is provided under the Apache License 2.0. For the full license details, please refer to the LICENSE file included with this generator.

About the Author

Author: Subrahmanyam Pampana

Contact: [email protected]

About Subrahmanyam Pampana:

Subrahmanyam Pampana is a software engineer with a passion for developing tools and utilities that make developers' lives easier.This Yeoman generator was created as a result of his experience in working with SAP DMC and the desire to simplify the plugin creation process. This is the Extention to the dmcpodplugin generator created by kevinhunter12 with local development support.

For more information or support, please contact Subrahmanyam Pampana