---
title: "WaveHost: Website and Client Panel for Hosting | VulCode"
description: "For the hosting provider WaveHost we built a sales website, a client panel that sets up services automatically and a Pterodactyl theme in its colours."
url: "https://vulcode.com/en/work/case-studies/wavehost"
lang: "en"
---

[Case studies](https://vulcode.com/en/work/case-studies)

WaveHostA hosting provider

# A website, client panel and game panel as one system

For WaveHost, a game server, VPS and dedicated server host, we built a new sales site with its own back end and a new client panel that provisions services automatically. We also built the account migration from the old client panel.

## The four parts of the WaveHost system: site, client panel, game panel and bot

The site, the client panel, the game panel and the team bot run separately, each with its own deployment. The customer moves through them in one brand: from the offer on the site, through the order in the panel, to their own game server.

- ### Sales site
  Game, VPS and dedicated server offers with a configurator, DDoS protection, reviews, questions and contact, in eight languages and three currencies. The WaveHost team changes the content and prices in the admin panel.

- ### Client panel
  Orders, a wallet with invoices, services with a console, the affiliate programme, tickets and account settings, in six languages. A worker, a program running in the background, sets up every service that is ordered.

- ### Game panel
  Pterodactyl in WaveHost colours. The client panel creates game servers in it through its API, and the customer also gets their console, power and settings in the client panel.

- ### Team bot
  On the team's Discord it shows the site's stats: page views, clicks on offers, questions opened and traffic from referral links. It sends a report every day and says when a figure passes the next milestone.

## One offer list for the site and the panel

The WaveHost team enters prices, packages and the VPS configurator once, in the site's admin panel. The client panel takes them from there, and a worker makes sure only a package that fits on the servers is on sale.

## What the team sets in the site's admin panel

- ### Offers and packages
  The name, price, description, feature list, highlight and visibility of every package.
  - Client panel: the package becomes an offer in the panel's shop

- ### VPS configurator
  The steps, questions, options and surcharges a customer builds their own server from.
  - Client panel: the same configurator with the same prices

- ### Content and traffic
  Questions, reviews, files, the about page and texts in eight languages, plus analytics, referral links and discounts.

- ### Running the client panel
  A separate area with its own sign-in: users, customer servers, IP addresses, nodes, locations, support and email.

## What the client panel takes from the site

- ### A shop with the site's offer
  Categories and packages come from the site. A package removed from the site is only hidden, so running services keep their offer.

- ### The same configurator
  The panel reads the configurator from the site, so a new price or option works in it without a new deployment.

- ### Technical parameters
  The team sets the node, game, cores, memory and disk, and the panel fills empty fields from the package's feature list.

- ### A node for each order
  The customer picks a location, and the panel puts the service on the least loaded node there with free IP addresses.

## Resource check: only what fits stays on sale

- ### Free room on the nodes
  Every few minutes a worker checks each node's free memory and disk, with a margin, and its free IP addresses.

- ### Packages leave and return on their own
  A package that no longer fits drops out of sale, and returns once resources free up.
  - Client panel: the offer leaves the shop or comes back to it

- ### Manual mode
  The team can switch any offer's availability to manual and decide on it themselves.

- ### A node that does not answer
  An unreachable node leaves its offers as they are, instead of flipping them back and forth.

## The client panel: ordering, paying and running a service

The customer orders, pays and runs a service from one account, in any of the panel's six languages. The dashboard shows the balance, services, the next payment, recent activity, invoices and the referral link at once.

- ### Order
  A VPS as a ready package or built in the configurator, a game server with a choice of location and game version, Paper or Vanilla for Minecraft for example.

- ### Payment from the wallet
  The customer tops up the balance through Stripe: BLIK (Polish mobile payments), Przelewy24 (Polish bank transfers) or a card. The wallet pays for orders and renewals, and every payment comes with an invoice to print.

- ### Running the service
  A VPS has a console, power, stats, backups, a firewall, reinstall and sub-users. A dedicated server powers on and shows its hardware through its management controller (IPMI or Redfish).

- ### Renewal and a bigger package
  A longer renewal period costs less, and moving to a bigger package costs only the difference for the days left in the period.

## The service sets itself up: a job queue and a worker

We built provisioning so that it never waits for a person. Once paid, the order goes into a job queue (BullMQ in Redis), and a separate worker sets up the service with nobody from the team involved. The panel API only adds the job, so the customer sees the service installing right away.

## How a VPS is set up

The worker creates the virtual machine through the Proxmox API, in four steps.

- ### A node in the location
  The panel picks the least loaded node in the customer's location that has free IP addresses and a template of the chosen system.

- ### Install from a template
  The worker creates the machine from the system's template, with its IP addresses and the password or SSH key the customer gave.

- ### Access details by email
  The customer gets the address, port and user: SSH and root for Linux, or RDP and Administrator for Windows.

- ### Service active
  The panel marks the machine active and gives the console, power, stats and backups right away.

## How a game server is set up

The worker creates the game server in Pterodactyl through its API, in four steps.

- ### An account in the game panel
  The worker creates the customer an account in Pterodactyl, or uses the one the customer already has.

- ### Room on a node
  With a location chosen, Pterodactyl picks the node itself; without one, the panel takes a free port on the node.

- ### Limits from the package
  Memory, disk and CPU come from the package, and the game's empty passwords, the remote console (RCON) password for example, get a random value.

- ### First start
  Where the game needs it, the panel waits for the install to finish, uploads the start files, Minecraft's eula.txt licence acceptance file for example, and only then starts the server.

## A service from installation to removal

A worker moves every service through its states by its expiry date, so the WaveHost team does not watch deadlines by hand.

- ### Installing
  Creates the machine or the game server. Until the install is done, the panel holds back actions that could get in its way, a renewal for example.
  - The worker

- ### Active
  Runs the service and renews it from the wallet for one, two or three months. Every renewal comes with an invoice and an entry in the activity log.
  - The customer

- ### Suspended
  Past the expiry date, it stops the VPS or suspends the game server in Pterodactyl. The data stays in place for seven days.
  - The worker

- ### Removed
  After seven days without a renewal, it removes the machine or the game server, so its room on the node goes back on sale.
  - The worker

- ### Renewal after expiry
  Paying for a suspended service brings it back as active, with a new period counted from the day of payment.
  - The customer

- ### System reinstall
  The customer picks another system, the machine installs from scratch, and the new access details arrive by email.
  - The customer

- ### A bigger package
  Changing the package adds resources until the end of the paid period, and the customer pays only the difference for the days left.
  - The customer

## Tickets land on the team's Discord

The customer writes in the panel, and the WaveHost team answers where it works anyway: on its own Discord. A support bot joins the two sides of the conversation.

- ### Customer
  in the client panel

- ### Client panel
  API and ticket database

- ### Support bot
  on the WaveHost Discord

- ### WaveHost team
  in the ticket channel

- ### A new ticket
  The customer gives the subject, priority and first message in the Support tab, without leaving the panel.

- ### A private ticket channel
  The bot opens a channel only the team can see and pins a card in it with the subject, priority, first message and a button with the customer's details.

- ### A reply from Discord
  A message written in the channel reaches the thread in the panel. The bot marks it delivered, and read once the customer opens it.

- ### The conversation goes on
  The customer's replies appear in the channel under their name, and the team sees when the customer is typing. Replies can also be sent from the Support tab of the admin panel.

- ### Closing
  The customer closes the ticket in the panel, or the team with a button in the channel after confirming. The channel locks and stays in the history as closed.

## A migration script moves the accounts

WaveHost's customers had their accounts, credit and payment history in the previous panel. We wrote a script that moves them to the new panel: it reads the old database with SQL queries and writes through the new panel's model, with its validation.

- ### The migration script: the order the data moves in
  ```
  const DRY_RUN = process.argv.includes("--dry-run");
  
  const LEGACY_ID_PREFIX = "legacy-panel:";
  
  const migratedId = (legacyId: string) => `${LEGACY_ID_PREFIX}${legacyId}`;
  
  async function main() {
  await migratePartnerLevels();
  await migrateUsers();
  await migratePayments();
  await migrateOrders();
  await migrateEarningsHistory();
  }
  ```

- ### Everything the customer had
  Partner levels, accounts with their wallet credit, referrals, payments, orders and commission history, in the order they depend on each other.

- ### A trial run
  With the --dry-run flag the script only lists what it would move and writes nothing, so the team sees the result before the database changes.

- ### No duplicates
  Every moved row carries its identifier from the old panel, so running the script again skips what has already moved.

- ### No guessing
  Old referral codes get a prefix so they cannot clash with new ones, and an order with no counterpart in the new catalogue waits for a manual check.

## Protecting an account that holds money and servers

The panel holds customers' credit and access to their machines, so the protection covers sign-in, access to services and payments.

- ### Two-factor sign-in
  One-time codes (TOTP) from an authenticator app, and passkeys that let the customer sign in without a password.

- ### A confirmed email address
  An account works once its address is confirmed. A worker removes an account not confirmed within a day.

- ### Protected forms
  Cloudflare Turnstile on sign-up, sign-in and password reset, and separate attempt limits in Redis for sign-in, payments, purchases, reinstalls and the firewall.

- ### Sub-users with permissions
  The owner gives another person access to one service and chooses what they may do: power, console, backups, firewall or renewal. A co-manager can pass on only what they hold themselves.

- ### Log and devices
  Sign-ins, renewals and actions on services are recorded with their time, and in the settings the customer sees their signed-in devices and can sign them out.

- ### Payments signed by Stripe
  The balance grows only after a Stripe event with a checked signature, and every payment from the wallet gets an invoice.

## Is your project like this one?

> Vulcode.com built our website and we're very happy with the result. The site runs smoothly, is well optimised and displays correctly on every device. The whole rollout went without a hitch, and the source code is clean and ready for further development. We appreciate the punctuality and the technical support at every stage.

> **Szymon** CEO, WaveHost [See the review](https://www.trustpilot.com/reviews/6a274bfbcbffded7b900827e)

## Questions about this project

- **What did VulCode build for WaveHost?**: A new sales site with its own back end, a new client panel that provisions services automatically, and the move of accounts out of the old client panel. The whole system has four parts: the site, the client panel, the game panel on Pterodactyl in WaveHost colours and the team bot on Discord.
- **How much does a website with a client panel for a hosting company cost?**: A company website starts at PLN 1,999 (about EUR 450) and usually takes 3-6 weeks, while a client panel starts at PLN 3,499 (about EUR 790) and takes 6-10 weeks. We send a free quote within an hour of your project description.
- **Will the panel connect to my Proxmox and Pterodactyl?**: Yes. The panel sets up virtual machines through the Proxmox API and game servers through the Pterodactyl API, and watches free capacity on the nodes itself. We configure the integration for your nodes, locations and plans.
- **Will WaveHost's customers start from scratch in the new panel?**: No. A migration script moves their accounts with their wallet credit, the partner levels, referrals, payments, orders and commission history over from the previous panel.
- **Who sets up a service after a purchase?**: Nobody by hand. The order goes into a queue in Redis, and a worker creates the machine through the Proxmox API or the game server through the Pterodactyl API, sends the access details and marks the service active.
- **Can the WaveHost team change prices without a developer?**: Yes. Offers, packages, the VPS configurator and discounts have their own tabs in the site's admin panel, and the client panel takes its prices from there, so a change works in both places without a new deployment.
- **Can the panel sell a server there is no room for?**: No. A worker checks every node's free memory, disk and IP addresses and takes a package that no longer fits off sale. The package comes back on sale by itself once resources free up.
- **What happens when a service expires?**: A worker stops the VPS or suspends the game server in Pterodactyl. A renewal from the wallet brings the service back, and after seven days without one the service is removed and frees its room on the node.
- **Where does the WaveHost team answer tickets?**: On its own Discord. Every ticket from the panel gets a private channel, and a reply written in the channel reaches the customer in the panel.
- **How is a customer account protected?**: With two-factor sign-in by TOTP codes, passkeys, Cloudflare Turnstile on the forms and attempt limits in Redis. Another person gets access as a sub-user with chosen permissions, and the activity log shows who did what and when.
- **Is Pterodactyl still in use?**: Yes, it runs the game servers in WaveHost colours. The client panel creates servers in it through its API and keeps the accounts, payments and billing.

[Next case study **Reelelle: social media on a subscription, with motion-designed reels**](https://vulcode.com/en/work/case-studies/reelelle)

## Describe your project.

A free quote comes back within an hour during working hours.

### Rather skip the form?

Ask in the chat or write to us directly.

Open the chat

- **Email**: [hello@vulcode.com](mailto:hello@vulcode.com)
- **Phone**: [+48 576 043 920](tel:+48576043920)
- **Discord**: [discord.gg/vulcode](https://discord.gg/vulcode)
