⏱️Quick Asset Version Deployment
This page will describe the flow to quickly deploy your asset version so that you can access it from your systems which can be a web app, mobile app, game or even from your API
Step 1 - Creating An Environment
Log in, and you will see the 'Home' page with quick action links.

Choose 'Create New Environment' (Environments are the logical space where you will deploy your assets)
It will take you to the 'New Environment' creation page
Please provide the value of following fields
Environment Id
Environment Name
Description (Optional)
Hit 'Create Environment' Button and system will take you to the 'Environment' List Page
In the Next step, we will create a virtual asset.
Step 2 - Create a Virtual Asset
Virtual Asset is a logical container that holds all the versions of particular virtual assets. For example - logo of your website, background image of particular section on your website, a unity game asset, etc.
Please follow below steps to create virtual asset -
Click 'Assets' from top nav bar. This will give couple of options, select 'Single'. It will take you the 'Virtual Assets' listing page.

Click on '+' button to add new asset
This will start a two step asset creation process
In the first step, you will add the definition of virtual asset.
Provide all the necessary details of your assets.
Leave 'Secured' flag as false only.
In the second step, you will upload the actual file of the asset like current version of website logo, banner, etc.
Select the target platform, right now you can just select 'Generic'
Upload the first version of your asset
If file is uploaded, you will receive success message. Please select 'Deploy Version' from success dialog box
Step 3 - Deploy a version to an environment
In this step we will set the asset version state to 'Default' within an environment so that you can access them in your codebase or where ever you want.
Once you select 'Deploy Version' from last step, it will take you to the Deployment page
Select the environment you have created earlier from left side list. If you have only one environment, it should be already selected
There are two buttons at the bottom of right side section. Please select 'Set Live'. This will set the version to the selected environment as 'Live'
Once version is 'Live', you will see there is a button 'Set Default'. This will set this version as a default into this environment.
Press 'Set Default'.
You will see a successful message, press 'Close', You will see the state of that version as a 'Default'
Now you just require the URL to access into your code
Go to the asset detail page from either breadcrumb ( Home > Virtualassets > Asset Id).
Or, you can select 'Assets' from top nav and then click on 'Single'
Select the asset you just created, It will take you to the Asset Detail Page
You will see 'Default URLs' section at the bottom of right side section.

From 'Default URL' section, choose your environment, and it will show you the URL as follows
https://adn.nestortech.io/api/va/<domain-id>/<asset-id>/<env-id>/<platform-id> Copy this URL and use wherever you want, simple HTML, react component, Unity game, etc.
Below is the example with simple HTML. Remember you can access only 'unsecure' assets like this.
```html
<html>
<head>
<title>Nestor URL Demo</title>
</head>
<body>
<img width="100px" src="https://adn.nestortech.io/api/va/<domain-id>/<asset-id>/<env-id>/<platform-id>">
</body>
</html>
```Last updated