Skip to content
D3Level 4 · LauncherUnder the hoodAbout 235 minutes of lessons

Deploying to the Web

How hosting turns your code into a website, and how to move your app to a new home without losing anything.

Suits
Learners who can use Git (D2) and want to understand real hosting. Everything is practised with Amphicode's deployment simulators. Learners aged 13 and over may also, optionally, publish finished projects with Amphicode's Publish button to a hosting account that they or a parent or guardian connect; real hosting accounts are owned by an adult where the platform requires it.
Before this
Where it fits
Level 4, Launcher (16+): Launch a real app and keep it running — deploy, domains, databases, mobile — and move it between tools without losing anything. This course is in Under the hood: The concepts and tools behind an app: files, front end and back end, data, APIs, Git, hosting and deployment.

What you'll be able to do

  • Explain servers, static files, serverless functions, builds and deployments.
  • Compare hosting platforms by the concepts they share rather than by brand.
  • Use preview deployments to check changes, and describe how a rollback restores a working site.
  • Keep secrets in a host's environment variables, separate for preview and production.
  • Explain why account ownership, age rules and plan terms matter before publishing.
  • Decide when a project is ready for Amphicode's Publish button: no personal information or secret keys, the right account holder, a host that fits the age and plan rules, and only public keys in the site.
  • Explain lock-in and keep an app movable: code, README, .env.example and migrations in your own repository.
  • Move an app: export it, run it locally, redeploy it on another host and migrate its data without losing anything.
  • Fix a broken connection with a checklist: logs, environment variables, keys, URLs and build settings.

Lessons

  1. 1. How hosting works

    25 min

    Servers, static files, builds and what happens when someone visits your site.

  2. 2. Platforms: Vercel, Netlify and Cloudflare Pages

    25 min

    What hosting platforms have in common: static files, server functions and Git-based deploys.

  3. 3. Previews, production and rollbacks

    25 min

    Check every change on a preview link, then roll back quickly if production breaks.

  4. 4. Secrets on a host

    25 min

    Environment variables in hosting settings: per environment, owned by the account holder.

  5. 5. Accounts, ages and terms

    20 min

    Who owns the account, personal and non-commercial plans, and why we follow each platform's rules.

  6. 6. Publish your app from Amphicode

    25 min

    What Amphicode's Publish button does, who can use it, which hosts fit your age and plan, and the checks that keep a public site safe.

  7. 7. Why apps get stuck in one tool

    25 min

    Lock-in: what keeps an app tied to one builder or host, and how owning your code in your own repository keeps you free to move.

  8. 8. Move your app: export, run, redeploy, migrate

    35 min

    The capstone: take an app out of one tool, run it on a computer, redeploy it on another host and move its data without losing anything.

  9. 9. When a connection fails

    30 min

    A calm checklist for broken connections after a deploy or a move: read the logs, then check env vars, keys, URLs and build settings.

How it's assessed

  • Explains the build-and-deploy pipeline and what happens when a step fails.
  • Decides which parts of a site should be static files and which need a server function.
  • Plans a safe deployment with a preview, a review and a rollback.
  • Configures pretend environment variables with no public secrets and separate keys per environment.
  • Identifies who should own the hosting account and what to check before publishing.
  • Explains how to publish safely with Amphicode's Publish button: what goes public, which hosts fit, public versus secret keys, and how to re-publish or unpublish.
  • Explains what keeps an app stuck in one tool and what a movable repository contains.
  • Completes the move-it simulator in a safe order and produces a move log.
  • Diagnoses broken connections from their logs and explains the fix.

To complete the course

  • Pass each lesson check (70% or more).
  • Complete the preview-and-rollback simulator and get a clean report in the environment variables dashboard.
  • Complete the "Move your app" capstone: the move-it simulator, a written move log and the connection-fix incidents.

Notes for parents, guardians and teachers

  • Every D3 lesson can be completed with Amphicode's simulators alone. No hosting account, key or payment details are needed.
  • Hosting platforms set their own age and plan rules (shown on the tool cards in the lessons), and rules can vary by country. Some require the account holder to be an adult, and some free plans are for personal, non-commercial use only.
  • Amphicode never creates hosting accounts for learners. Any real deployment is optional, and the account is set up and owned by a parent or guardian where the platform's terms require it.
  • Learners aged 13 and over may optionally publish finished projects with Amphicode's Publish button to a hosting account that they or you connect under Settings → Publishing. Amphicode only offers hosts whose own rules allow the learner's age band. If your learner connects one themself, you are notified when they connect it and when they first publish, and you can unpublish their sites and disconnect hosts from their page in your family area.
  • Published sites are public: anyone with the link can see them and read their code. Amphicode checks every publish for personal information and keys typed into the code and refuses if it finds any. The host sign-in is kept encrypted on Amphicode's server and never goes into a project or a site; apps using a database include only its public key.
  • Hosting runs on the connected account's free plan and is not covered by Amphicode's AI credits, which pay for building only. Learners under 13 can't publish publicly: their apps stay in Amphicode's private sandbox, and they learn publishing with the simulators.
  • The "Move your app" capstone is practised with Amphicode's simulators and sandbox deploy. Learners aged 16 and over may, with your agreement, repeat the move on real hosts; the account holder enters any keys.

What comes next

A parent, guardian or teacher creates the account. A short placement check suggests where each learner starts.