How to build a full-stack web app from scratch on a minimal budget
Large companies have complex systems with much of the architecture hidden from view. This reduces the daily workload but makes the entire system difficult to understand. At startups, limited resources often leave important parts of the architecture unfinished.
System design interviews add to the problem by focusing on scale rather than observability, CI/CD, and developer tooling.
Learning how to build a web app from scratch offers a fuller view of software engineering. The goal at the 0–1 stage is to establish the essential architecture of a growing platform at a minimal cost.
At work
Companies with engineering teams share the cost of cloud infrastructure, developer tools, and SaaS. Specialists in DevOps, security, database administration, and site reliability engineering (SRE) keep software secure and reliable.
Engineers can build web applications without managing every part of the platform. Companies often review spending and remove underused services only after costs rise.
DIY
The decision to build a web app outside work often stems from a business idea or a desire to learn. The same best practices apply, but tools and hosting come out of a personal budget.
Making a web app with limited funds encourages attention to unit costs, such as the cost per user or transaction. A positive contribution margin means revenue exceeds variable costs. A negative margin means growth can increase losses.
Things every web application should have
The easiest way to build a web app is not always the easiest way to run it. A public application needs a way to manage data, ship changes, and recover from failure.
The following components provide a baseline for building a web application.
Core languages and frameworks
Many languages and frameworks can help build web apps. The backend handles business logic and data. The frontend provides the user interface.
Source control
Every codebase needs a system of record. Git tracks changes and helps restore earlier versions, even on a solo project.
Developer tooling
A text editor is enough to build a simple web application, but an integrated development environment (IDE) simplifies debugging and refactoring. AI-assisted coding tools can also reduce repetitive work.
Domain name services (DNS)
DNS connects a domain name to the application infrastructure. A free subdomain may suffice for a prototype.
Runtime and compute
Understanding how to develop a web app includes deciding where the software will run. Containers provide consistent environments, while orchestration helps manage deployment and resource allocation.
Authentication and authorization (Authn/Authz)
Authentication verifies identity. Authorization determines which resources and actions an account can access.
Persistent storage
Data needs to survive requests and sessions. Databases store structured records, while object storage can hold documents and media.
Backups
Even small applications need automated backups. A separate copy of critical data and regular restore tests help prevent permanent data loss.

Continuous integration and continuous deployment (CI/CD)
Learning how to build web apps also involves shipping changes safely. An automated pipeline can run tests, package software, and deploy new releases.
Testing and test coverage analysis
Tests confirm that software behaves as expected after a change. High coverage is useful, but meaningful tests of critical workflows matter more than a perfect percentage.
Monitoring and observability
Availability checks reveal whether a site responds. Logs, metrics, and traces provide insight into how the application behaves and help identify faults.
Application security analysis
Dependency scanning, access controls, secure configuration, and regular updates are essential for internet-facing services.
Acceptable performance characteristics
Understanding how to make web app pages responsive involves more than server speed. The browser must render content, respond to input, and avoid unexpected layout shifts.
T-shirt sizing
Rough estimates of data size and transaction volume help prevent obvious mistakes when planning how to build a web based application.
A service collecting logs from distributed systems may generate large volumes of data even with a few connected machines. This workload might fall into the Large or Extra Large category.
A website that handles occasional requests from human users may start in the Small category and grow into Medium. Building web application infrastructure for millions of users rarely makes sense at the 0–1 stage.
The application
The case study is crank.fyi, an application that ranks potential employers using weighted-average scoring algorithms.
The source code is available at https://github.com/ under the MIT License. The repository offers a practical example of how to create web apps with a conventional backend, a modest frontend, and supporting infrastructure.
Out of scope
The initial architecture excludes the following concerns:
- Large amounts of traffic and high transaction volumes.
- High availability.
- Performance for a globally distributed audience.
- Dedicated mobile experiences.
- Internationalization (i18n) and localization (l10n).
These limits keep the project manageable without overlooking basic accessibility.
The architecture
Each technology addresses a requirement from the earlier list. Together, these choices show how to build web applications on a small budget.
Backend
Python offers readable syntax and a broad ecosystem. Django includes an ORM, authentication, routing, migrations, and an admin interface.
Django 5.2 LTS remains supported. Django’s startproject command can create webapp, for example, as a starter project. This illustrates how to create web app foundations with basic settings and URL configuration.

Java, C++, Rust, and Go can offer better runtime performance, but a small website rarely needs that advantage.
Frontend
The first version used server-rendered HTML, JavaScript, and Bootstrap. React later added browser-side filtering and pagination. The component started in JavaScript before moving to TypeScript.
This is a practical example of how to make a web app more interactive without rebuilding the entire frontend.
Source control
GitHub provides source control, pull requests, and a container registry. Standard GitHub-hosted Actions runners remain free for public repositories. Private repositories have limited compute and storage allowances. Repository activity can also demonstrate practical experience with development workflows. Secrets belong outside the codebase.
Developer tooling
PyCharm supports Python and Django. The unified IDE offers free core features, with advanced tools on the Pro plan.
GitHub Copilot offers 2,000 code completions per month and limited chat and agent use on the free plan. AI tools help build web app features and draft tests, but generated code still needs review.
Domain name services (DNS)
Cloudflare provides DNS, HTTPS support, CDN caching, web analytics, and domain registration. Registration is paid, but several supporting services are free.
Cloudflare Tunnel, formerly Argo Tunnel, uses outbound connections. A home server can serve public traffic without exposing a public IP or opening inbound web ports.
Runtime and compute
The application first ran on Google Cloud Run. A free usage allowance and scale-to-zero support suit low traffic, but cold starts may delay requests.
The project moved to a home server with gigabit fiber, removing a separate compute bill. Hardware, electricity, and internet access still cost money.
The runtime uses K3s, a lightweight Kubernetes distribution, with Portainer for cluster management. Kubernetes offers a consistent way to handle deployments, health checks, and resource limits. Docker Compose may be simpler for a single service. A single-node cluster does not provide high availability.
Google Compute Engine offers an eligible free e2-micro instance in selected US regions, but its memory is below the K3s server minimum. The AWS Free account plan for new customers lasts up to six months or until credits run out. Free hosting is not guaranteed for every workload. Cloud storage, network traffic, and resources outside free allowances may generate separate charges. Billing alerts help track spending, but do not automatically cap it.
Authentication and authorization (Authn/Authz)
Django provides authentication, sessions, and permissions. The django-allauth package adds social login through Google accounts.
Social login reduces password management. HTTPS, secure cookies, and access checks remain necessary. This setup illustrates how to create web applications with restricted functionality.
Persistent storage
MySQL handles persistent data and offers mature admin tools. MySQL-compatible services such as PlanetScale and TiDB may support future growth, subject to compatibility and cost.
SQLite simplifies local development. Important queries and migrations also need testing against MySQL.
Static assets live in GitHub, so separate object storage is not needed at this stage. User uploads and large media files could change that requirement.
Backups
A local Git clone is backed up to iCloud. A cron job creates database backups and mirrors them to cloud storage.
Database exports need encryption, restricted access, and periodic restore tests.
Continuous integration and continuous deployment (CI/CD)
GitHub Actions tests and builds the application. Images go to GitHub Container Registry (GHCR). Trunk-based development allows merges into main to trigger production releases.
Kubernetes readiness probes keep traffic away from unready containers, while liveness probes restart unhealthy ones. These checks make web application deployments safer, but a rollback plan remains important, especially when database migrations are involved.

Testing and test coverage analysis
Backend tests use pytest, while Jest covers React and TypeScript. GitHub Actions sends coverage reports to Codecov, free for open-source projects.
The project reported 98.59% combined coverage. Tests of access permissions and ranking algorithms matter more than the number alone.
Monitoring and observability
New Relic covers application performance monitoring (APM), logs, and infrastructure metrics. The free plan includes 100 GB of monthly data ingest and one full platform user.
The project uses agents for Ubuntu and Python, plus a Helm-based K3s integration. Cloudflare Web Analytics adds visitor and performance data. Limiting verbose logs and filtering sensitive fields helps keep monitoring costs and privacy risks under control.
ITRS Uptrends adds uptime checks and email alerts through a free service for personal sites. New Relic ping monitors are an alternative.
Application security
Snyk integrates with GitHub and scans dependencies. Its free plan also includes limited code, container, and infrastructure scans.
Cloudflare protects incoming traffic through HTTPS, DDoS mitigation, and secure tunnels. The free plan now includes a basic managed web application firewall (WAF), custom rules, and limited rate limiting.
Django deployment checks, secret management, and regular security updates provide further protection. Automated fix suggestions should still pass the test suite before release.
Acceptable performance characteristics
Chrome Lighthouse evaluates performance, accessibility, best practices, and SEO. The project reported scores of 100 in all four categories and page loads of 0.4–0.6 seconds after introducing React.
Core Web Vitals are different from these Lighthouse scores. Google uses three metrics: Largest Contentful Paint (LCP), Interaction to Next Paint (INP), and Cumulative Layout Shift (CLS). Good results mean LCP within 2.5 seconds, INP within 200 milliseconds, and CLS no greater than 0.1.
Cloudflare Web Analytics helps compare lab results with real visitor experiences.
Recap
The best way to build a web app at the 0–1 stage is to match the architecture to actual needs. Tools that create web based application prototypes quickly may save development time, but operating costs still deserve attention.
This case study shows how to build web application infrastructure with open-source tools and free service tiers. The setup is not highly available and contains several single points of failure. However, it provides the core capabilities needed to create a web application for public use.
The main costs are domain registration, hardware, electricity, and internet access. Paid tools and extra storage remain optional. Costs vary by usage. The platform can support its first real users and evolve as demand grows.