Home Manual Reference Source
Manual » Installation

Installation

The ipro api itself consists mainly just of an interface that doesn't need to be 'installed'. However there are also supporting enums for facilitating interactions. As per convention those enums have to be centrally loaded by the application and then can be used by the application and the ipros. Ipros themselves don't have to load the enums, at least not in production.

The enums are provided as node module and can be installed via:

npm install sap-pdms-ipro-api --save

The node module will expose a file under: node_modules/sap-pdms-ipro-api/dist/sap-pdms-ipro-api.js.

Assuming you're using a simple node express server in your application it is sufficient to include the file via a script tag in the <head> section of your index.html:

<script src="./node_modules/sap-pdms-ipro-api/dist/sap-pdms-ipro-api.js" type="application/javascript"></script>