# New Here - Trying to deploy a project on my domain

**URL:** <https://forum.deepar.ai/t/new-here-trying-to-deploy-a-project-on-my-domain/945>\
**Category:** Studio\
**Tags:** web-sdk\
**Created:** [January 14, 2025, 7:07am UTC](https://forum.deepar.ai/t/new-here-trying-to-deploy-a-project-on-my-domain/945 "2025-01-14T07:07:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fanciful\_AR](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/fanciful_ar/32/1039_2.png) [@Fanciful\_AR](https://forum.deepar.ai/u/Fanciful_AR)\
**Post date:** [January 14, 2025, 7:07am UTC](https://forum.deepar.ai/t/new-here-trying-to-deploy-a-project-on-my-domain/945/1 "2025-01-14T07:07:49Z")

</div>

Is there any tutorial or step by step guide to deploy a project to a domain with picture download functionality?

---

<div class="post-metadata">

**Author:** ![goataog](https://avatars.discourse-cdn.com/v4/letter/g/f9ae1b/32.png) [@goataog](https://forum.deepar.ai/u/goataog)\
**Post date:** [January 16, 2025, 5:22am UTC](https://forum.deepar.ai/t/new-here-trying-to-deploy-a-project-on-my-domain/945/2 "2025-01-16T05:22:12Z")

</div>

I have tried to deploy to the web, but I tried from DeepAR’s Demo Project, using ‘npm run build’ (the first build had problems, not sure if it was because my computer was Windows, so I had to change the Build command in package.json ). Then upload all file in ‘dist’ folder to server.

As for downloading to the machine,

```auto
async function saveScreenshotToDownload(blob) {

  try {
    // Create a link element
    const link = document.createElement('a');
    const timestamp = Date.now(); // Generate a timestamp for the filename
    const filename = `screenshot_${timestamp}.png`; // Create a filename

    // Create a URL for the Blob and set it as the href of the link
    link.href = URL.createObjectURL(blob);
    link.download = filename; // Set the download attribute with the filename

    // Programmatically click the link to trigger the download
    document.body.appendChild(link); // Append the link to the body
    link.click(); // Trigger the download
    document.body.removeChild(link); // Remove the link after downloading

    console.log('Image saved to Download:', filename);
  } catch (error) {
    console.error('Error taking snapshot:', error);
  }
}

```
