Claude Code can build a small web app on a virtual private server (VPS) and help publish it at a domain with HTTPS. This approach is aimed at people who want a working app but do not plan to write its code themselves. Teacher's Tech demonstrates the process by building a wholesale coffee order form on a Hostinger VPS.
A VPS is a rented computer in a data center that stays online independently of your own computer. In this setup, Claude Code runs on the VPS alongside the app, its database, and the web server. That arrangement lets the coding tool create the app on the machine where the app will run.
The demonstration builds an order form with fields for a cafe, contact email, product, bag quantity, and delivery day. It uses Node.js and SQLite, and saves orders in a database on the server. A password-protected orders page lets the business owner review submissions.
Publishing involves more than generating files. The domain must point to the VPS, the app must keep running as a background service, and a web server must handle secure HTTPS connections. In the demonstration, Caddy handles HTTPS and the app runs as a service that starts with the server and restarts if it crashes.
This approach suits a beginner or small business owner experimenting with a modest web app, such as an order form, booking page, or signup list. It is also relevant to developers who want to test how far an agentic coding tool can take a project from a written description to a live deployment.
The walkthrough uses a Hostinger VPS configured with Claude Code during setup, and a paid Claude plan that includes Claude Code; the presenter uses Claude Pro. It also uses a domain. The example plan included a domain free for its first year, but renewal terms and prices depend on the plan and may change.
The app and database are hosted on that VPS, so this is a self-managed setup rather than an app published through a managed Microsoft platform. You need to be comfortable reviewing the generated files and configuration, protecting the server, and maintaining the app and its data. The walkthrough uses a browser-based server console, so it does not require installing the terminal on a local computer.
Set up a VPS with Claude Code installed, then register or connect a domain. Copy the server's IP address from the VPS overview.
In the domain's DNS settings, edit the A record for the root domain (shown as @) to use the VPS IP. The example leaves the www record in place so it follows the main domain. DNS changes can take time to propagate.
Open the server's web console and start Claude Code by entering claude. Sign in using a Claude account with a subscription, then trust the project folder before asking the tool to work in it.
Configure the VPS firewall to allow the required traffic. The example adds rules for SSH (port 22), HTTP (port 80), and HTTPS (port 443), then enables the firewall.
Describe the app in a prompt: its purpose, form fields, data storage, and access requirements. The example asks for a Node.js and SQLite app, an orders page protected by a password, and a project folder. Claude Code creates the files and installs what the app needs.
Review the files and any assumptions. The demo asks Claude Code to explain the files in plain English, then corrects placeholder product names. For publishing, it asks Claude Code to create a service, put Caddy in front of the app, and enable HTTPS for the domain.
Once published, test the order form and the protected orders page. The presenter also asks Claude Code to add a discount-code field, then checks the change in the browser. A restart test verifies that the service brings the app back without a manual launch.
A generated app still needs review. The example's first draft used placeholder product names because the prompt did not specify the real products. Claude Code also added behavior the prompt had not requested, including temporarily blocking access after five incorrect password attempts. Reading its summary and checking the implementation helps surface such decisions.
Security and data protection remain the owner's responsibility. The demonstration uses HTTPS and a password-protected orders page, and recommends a strong password and database backups. It also notes that a larger change to an app people rely on is a good time to back up the database first. A weekly server backup is mentioned in the walkthrough, but it is not a substitute for understanding how to restore the application data.
A new domain may not work immediately while DNS changes spread. If the site does not load or HTTPS is not active, the walkthrough suggests waiting for the domain update and asking Claude Code to investigate the HTTPS setup. This is a VPS-based route for a small app; organizations that need managed identity, business-data governance, or an established deployment process should assess their platform requirements before choosing this model.
The demonstration uses plain-English prompts rather than manually writing the app code. You should still review what Claude Code creates, including its assumptions and security settings.
The walkthrough uses a paid Claude plan that includes Claude Code; the presenter uses Claude Pro. The free plan does not include Claude Code, according to the demonstration.
The app runs on the VPS as a service. The service starts with the server and restarts if the app crashes, so it can continue running when your computer is off.
Point the domain's A record at the VPS IP, then configure Caddy in front of the app to handle HTTPS. DNS updates can take time to spread.