Import assets for a web application
You can import and store files and the associated assets locally created in an IDE of your choice for single-page front-end web applications (SPAs) in Neptune DXP - Open Edition for public deployment.
Prerequisites
-
When folders of assets are imported, the Web App Manager fetches the base file path for correct display on runtime. In the config file of the bundler, for example, Vite, when bundling the asset of your SPA in your IDE, the base file path must be set to
webapp/{name of your web application}
. The name of your web application corresponds to the name you gave your web application when you created it. -
You have created a web application in the Web App Manager to import your assets to.
Procedure
-
In the Cockpit, select the Web App Manager.
Result: A table with existing web applications is shown.
-
Select the web application that you want to add assets to.
-
Select Edit and Import.
-
Depending on how your web application assets are stored locally on your computer, select Zip or Folder.
-
Search for the folder of assets and upload them.
Result: All imported assets are listed in the Assets tab.
-
To run your web application with the imported assets, select Run.
Results
-
You have imported assets to your web application in Neptune DXP - Open Edition.
-
The web application is now accessible at
https://{Open Edition Host Root URL}/webapp/{name of your web application}
.