Tutorial 1 - Your First Product¶
Note
Before you start:
Permission to add Products.
Check for new Package versions requires the PurlDB integration (PurlDB).
Sign in to DejaCode.
Create a Product¶
Select Products from the main menu bar.
Click the green Add Product button. Enter the values that you know, you can refer to Product model for details about each field.
Set a name, and click the Add Product button at the bottom of the form.
Note
You are ready to assign Inventory objects to your Product!
Load a Software Bill of Materials (SBOM) to your Product¶
You have the flexibility to employ either your CycloneDX, SPDX, or AboutFile Software Bill of Materials (SBOMs).
Alternatively, you can conveniently download one of the provided examples from the following GitHub repository.
On the Product details page, from the Actions dropdown, select Import SBOM:
Click the Choose File button on the SBOM file or zip archive field.
Select your SBOM (.cdx.json or .spdx.json) and click the Open button.
Check the Update existing packages with discovered packages data option.
Click the Import button.
DejaCode presents the Imports tab. Refresh your screen from the browser to see the status of your import.
View your import results in the Inventory tab.
Note
Continue assigning packages to your Product as required.
Assign Packages to your Product¶
From the Manage dropdown, select Packages:
Click the Add Package to Product button.
Enter the start of a package identifier, for example
diagramsand select packagediagrams-0.12.0.tar.gz. DejaCode gets the licensemitfrom the package definition.Click the Save button.
You can see the results by selecting the Inventory tab.
Select Packages from the main menu bar.
Locate one or more packages to be used in your Product.
Use the checkbox on the left to select your package(s).
Select the
Productoption from the Add to dropdown.Select your product from the dropdown list.
Click the Add to Product button.
View your results in the Inventory tab.
Note
Continue assigning packages to your Product as required.
Review your progress¶
Click the Generate Attribution icon button:
Accept all the default attribution configuration settings.
Scroll down and click the Generate Attribution button.
Explore the attribution document that DejaCode presents to you.
Save the document to your local file system using your browser File Save command.
Select Reports from the Tools section of the side menu:
Select an appropriate report such as
2-Product Package Analysis.Enter your product Name and Version and click Rerun Report.
Explore the results that DejaCode presents to you.
Export the report to your local file system using the Export button.
Check for New Versions of your Product Packages¶
Select Products from the main menu bar.
Click the Product name of the Product you are defining to open it.
From the Manage dropdown, select Check for new Package versions: New Package Versions are displayed on the Inventory tab. You can click on new versions and add them to DejaCode from the PurlDB.
Assign Catalog Components to your Product¶
Select Products from the main menu bar.
Click the Product name of the Product you are defining to open it.
From the Manage dropdown, select Components:
Click the Add Component to Product button.
Enter the start of a Component, for example
logand select a version of componentApache Log4J. DejaCode gets the licenseapache-2.0from the component definition.Click the Save button.
You can see the results by selecting the Inventory tab.
Select Components from the Catalog section of the side menu.
Locate one or more components to be used in your Product.
Use the checkbox on the left to select your component(s).
Select the
Productoption from the Add to dropdown.Select your product from the dropdown list.
Click the Add to Product button.
View your results in the Inventory tab.
Note
Continue assigning components to your Product as required.
Review your impact¶
Generate the attribution and run the reports again as described in
Review your progress, using a report such as
2-Product Component Analysis.
Assign Custom Components to your Product¶
Select Products from the main menu bar.
Click the Product name of the Product you are defining to open it.
From the Manage dropdown, select Add custom Component:
Enter the data fields that define your custom Component.
Click the Save button.
Your results are displayed on the Inventory tab.
Review the impact on your attribution and reports as described in
Review your progress, using a report such as
2-Product Custom Component Analysis.
Review the Licenses that Impact your Product¶
Select Products from the main menu bar.
Click the Product name of the Product you are defining to open it.
Click the Compliance tab. The License compliance panel displays the Packages and the Policy for each License of your Product. Export it from the download icon of the panel, for example as Comma-separated Values (.csv).
Assign Everything Else to your Product¶
Continue refining and reviewing your product.
In Tutorial 2 - Working with Packages, we’ll explore Packages in greater detail!