This repository contains the source code for the VpnHood! WebUI, built with Vue 3 and Vite.
To get the project up and running, follow these steps.
You'll need Node.js (v16+) installed on your system. You can download it from the official Node.js website.
- Clone the repository:
git clone https://github.com/vpnhood/VpnHood.Client.WebUI.git
- Install dependencies:
npm install
The WebUI needs to know where to find the VpnHood API. The .env.development file already exists in the project.
Open it and configure the VITE_API_BASE_URL to match your environment.
| Environment | VpnHood! Client | VpnHood! Connect |
|---|---|---|
| Windows | VITE_API_BASE_URL=http://my-vpnhood:9571 |
VITE_API_BASE_URL=http://my-vpnhood-connect:9571 |
| Android | VITE_API_BASE_URL=http://<YOUR_DEVICE-IP>:9581 |
VITE_API_BASE_URL=http://<YOUR_DEVICE-IP>:9571 |
💡 Important:
- Replace
<YOUR_DEVICE-IP>with the IP address of the device hosting the VpnHood app.- If you are connecting from a separate device, the VpnHood app must be running in debug configuration.
To start a development server with hot-reloading:
npm run devvite serveTo build a production-ready version:
npm run buildvite buildThis command generates the compiled files in the dist directory.
After building the project, you'll need to package the output for use with the VpnHood app.
- Navigate to the
distdirectory. - Compress the contents of the
distdirectory (not the folder itself) into a zip file namedSPA.zip. - Copy
SPA.zipto the target project directory.