# Host your Qt WASM App in Serge.sh

As explained previously in  [# Day1: Qt is the chosen one!](https://www.foxoman.net/day1-qt-is-the-chosen-one-ck94gm8x1002erys1ynm7uw3i) , Qt Support many platforms, and now one of them is the web using  [Webassmebly](https://www.qt.io/qt-examples-for-webassembly)  as you can build your C++ / qml app without any changes to run as a web app.

This is post is not about  [building the Qt WASM app](https://doc.qt.io/qt-5/wasm.html)  but rather to find a hosting service that can help you host your app easily.

**My current choice is** *surge.sh*

- Free Plan
- Command-Line support tool to register/add/remove and update projects
- subdomain support
- WASM Binary Server-side compression
- CDN support

## Install


```
npm install --global surge
``` 
Use ```sudo``` if you want to install as root/admin

## Deploy

- Make anew folder for your project
- Get your final build files: app.js app.wasm app.html qtloader.js qtlogo.svg inside the new project folder
- rename the app.html to index.html
- run ```surge``` inside the terminal in your new project folder
- it will ask you to register new account with email and pass
- then will ask you for project folder and project URL
- you can change the project subdomain as you wish if it was not selected before
- upload your project

![ksnip_20200725-234615.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1595706384048/4FisShBGs.png)

## Examples:

### BMI Calculator

![ksnip_20200725-225623.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1595703440337/VE6PSh3dK.png)
http://bmic.surge.sh/


### MarkDown Editor

![ksnip_20200725-225845.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1595703538753/H3oC-H7og.png)
http://mde.surge.sh/


---
[![bymecoffe.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1587235304131/Je4ZlrqY6.png)](https://www.buymeacoffee.com/foxoman)
 ***Thank you for your support!***
