Fast, Accessible Web App with Performance Budgets and Edge Delivery on AWS

Build a React and TypeScript site whose pages arrive as complete HTML from the CloudFront edge, stay fast and accessible on real phones, enforce a strict CSP with Trusted Types, work offline, report field Core Web Vitals without personal data, and release or roll back in one step.

Frontend Developer. Advanced.

What you will build and explain

  • Prerender every page at build time and hydrate it without mismatches, with lazy routes and accessible client-side navigation.
  • Validate API data at runtime against a shared OpenAPI contract, and make booking retries safe with idempotency keys.
  • Build forms and pages that pass WCAG 2.2 A and AA automated checks and work with a keyboard and a screen reader.
  • Measure LCP, INP and CLS, and stop regressions with per-page bundle budgets and Lighthouse.
  • Serve the site through CloudFront with cache policies, an edge function, origin access control and a strict CSP, then preview, promote and roll back releases and remove every resource.

Before you begin

  • Terminal use, Git, HTML and CSS with flexbox and media queries, JavaScript modules and async/await, reading TypeScript types
  • A small React component with props, state and effects; HTTP methods, status codes, headers and browser caching; reading a short Terraform file
  • Docker for the free local stack; an approved AWS account, a spending limit and a time window for the optional AWS build

Who this is for

For developers who can build a small React component and read TypeScript, and want to make a web app fast on real phones, accessible, secure against injected code and delivered from the CloudFront edge.

Curriculum

Learning topics (19)
  1. Understand the brief and prepare your tools

    You will build and deliver the website of Lanternfield Workshops, a fictional network of community workshops. Most of its visitors are on phones over mobile data. Your job, as the frontend developer, is to make the site fast on those phones, usable by everyone, safe against injected code, still useful offline, measurable in the field, and cheap to release and roll back. This lesson says what you should know before you start, what the project teaches, and how to get your machi

  2. Follow one visit from the edge to a booking

    This chapter explains the whole system before the lessons take it apart. Read it once now, and come back to it whenever a lesson mentions a part you have not met yet. Each section answers one question about a visitor's request: where it goes, who may answer it, what is cached, and what happens when something fails.

  3. Prerender every page, then hydrate without mismatches

    A visitor on a slow phone taps a link to the Puncture clinic. With the old site, the server sent an empty <div id="root"> and a large JavaScript file; nothing appeared until the file had downloaded, been parsed and run, and then fetched the workshop data. This lesson explains how the new site sends the finished page instead, and how React then takes that page over without drawing it again.

  4. Lazy routes, navigation feedback and focus

    The first page now arrives complete. The next question is what happens when the visitor clicks a link. A traditional website loads a whole new document; a single-page app swaps the page in place. The second is faster after the first visit, but it can easily break things the browser used to do for free: the title, keyboard focus, the screen-reader announcement of a new page, the scroll position on Back, and a reasonable download size.

  5. A typed API contract with runtime checks at the boundary

    The site talks to one small API: seat counts, bookings and field metrics. The frontend is written in strict TypeScript, so it is tempting to think the data is "typed". It is not. TypeScript checks your code at build time and then disappears; at runtime await response.json() returns whatever arrived, which may be the API's answer, an old version of it, a CloudFront error page, or a captive-portal login page from a café's Wi-Fi.

  6. Loading, stale, failed and offline data without blocking the page

    Every workshop card shows a live seat count. On a good connection it arrives in a fraction of a second; on a train it may take five seconds, fail, or never come. The question this lesson answers is what the page shows in each of those cases, and how to make sure the answer is deliberate rather than an accident of how the code happened to be written.

  7. An accessible booking form that cannot double-book

    The booking form is the one place where the site asks visitors to do something, and it is where both accessibility and reliability are tested hardest. A blind visitor must know which field has a problem and how to fix it. A visitor on a flaky connection who taps "Confirm booking" twice, or retries after a timeout, must end up with exactly one booking.

  8. Landmarks, focus, motion and automated accessibility checks

    Lesson 7 built one accessible form. A site has many pages, and each change can break something on any of them: a new icon button without a name, a colour that is a shade too light, a card where the keyboard focus disappears. This lesson explains what "accessible" means precisely enough to test, which checks run automatically on every change here, and which checks still need a person.

  9. Core Web Vitals, bundle budgets and responsive images

    Lanternfield's visitors are mostly on mid-range Android phones over mobile data. On that hardware, a page that feels instant on a developer's laptop can take several seconds to show its main content and stutter when tapped. This lesson explains how page speed is measured, what decides it, what this project does about each part, and how budgets stop the site from getting slower one harmless change at a time.

  10. A strict Content Security Policy with Trusted Types

    The most common serious attack on a website's visitors is cross-site scripting (XSS): an attacker gets their JavaScript to run on your page, in your visitors' browsers, with your site's privileges. It can read what the page shows (here, booking codes and badge names), act as the visitor (cancel their bookings) or rewrite the page. This lesson shows how the site makes XSS very hard even if a bug lets an attacker's text into a page, using two browser features delivered as HTTP

  11. Offline pages and safe updates with a service worker

    A visitor checks the time of their Saturday workshop on the way there, in a basement with no signal. Without help, the browser shows its own "No internet" page. With a service worker, the site can show the workshop page they opened yesterday, or at least a page of its own explaining what still works. The same mechanism also decides how a new release reaches people who already have the site open, which is where many offline-capable sites go wrong.

  12. CloudFront caching, origins and origin access control

    Everything so far makes pages small and complete. Delivery decides how quickly they reach a phone in another city. This lesson explains how Amazon CloudFront, a content delivery network (CDN), serves the site: which requests it answers from its caches and for how long, how one distribution serves static files and an API, how a tiny function at the edge maps URLs to the current release, and how the storage bucket and the API refuse every request that did not come through Cloud

  13. Preview, promote and roll back releases at the edge

    A release is the riskiest moment in a site's week. The classic way to publish a static site, copying the new files over the old ones and then purging the CDN, has three problems: for a while visitors get a mix of old and new files; checking the new version means checking it live; and going back means rebuilding and re-uploading the old version under pressure. This lesson shows how this site releases instead: every release is uploaded beside the others, can be previewed privat

  14. Field Core Web Vitals with privacy by design

    The lab budgets of lesson 9 say a release should be fast. Only real visits say whether it is: on visitors' actual phones, networks and pages, including interactions no lab test makes. This lesson builds that measurement, from the visitor's browser to a CloudWatch alarm, while sending as little as possible about the visitor.

  15. Tests and CI gates that protect the experience

    The previous lessons each made a promise: pages arrive complete and hydrate cleanly, the API contract holds, the form is accessible and books once, pages stay within budget, injected code is refused, visited pages work offline, the edge serves the right release. A promise nobody checks is broken by the next busy week. This lesson shows the checks that run on every change, what each one is good at, and how they are arranged so a failure is fast to find and cheap to fix.

  16. Deploy the site and verify it at the edge

    This is the single ordered procedure for the whole lab: tools, the local stack, the AWS infrastructure, the first release, verification, and later releases with a rollback. The milestone guides show its sections one at a time. Removing everything again is in cleanup.

  17. Troubleshoot the site from evidence

    Objective: diagnose problems in a prerendered, edge-delivered app by first finding which layer produced what you see, instead of guessing from the symptom. Before this lesson: the technology lessons for the case you are working on, and the command context.

  18. Explain frontend decisions in an interview

    Objective: practise explaining this project's decisions the way a frontend interview asks for them: a walkthrough, then a decision, then a changed constraint. Before this lesson: the architecture and the technology lessons for the topics you are practising.

  19. Remove the lab and check for leftovers

    Run this the same day you deploy. It removes every AWS resource the lab created, in the order their dependencies require, and then searches for anything left behind. Commands run in a terminal in the project's source/ folder.

Practical build steps (8)
  1. Install the tools and choose your inputs

    Before anything is built, your machine needs the tools, your AWS identity needs to be the one you intend, and one small file needs to hold the choices every later step reads. Nothing is created in AWS in this milestone.

  2. Run the site locally and run the checks

    Before spending anything on AWS, you build the site exactly as a release is built and run it behind nginx, which stands in for CloudFront, with the booking API and DynamoDB Local in containers. The same pages, headers, service worker and API answers; only the edge itself (the router function, origin access control, KeyValueStore propagation) is missing.

  3. Create the Terraform state bucket

    The first AWS change is small: one S3 bucket where Terraform keeps the site's state. It is created by its own Terraform root so that the site's state never lives only on your laptop.

  4. Create the edge, the API and the data

    One Terraform root creates everything the site runs on: the site bucket, the CloudFront distribution with three behaviours, the router function and its KeyValueStore, origin access control for S3 and Lambda, cache and response headers policies, the Python API on Lambda with a function URL, the DynamoDB table, a log group and three alarms. No release exists yet.

  5. Build, stage and preview a release

    A release is one build of the site with its own ID. You build it locally, upload it beside any existing releases, and stage it: visitors see nothing new, but requests that name the release in a header get it from the real edge.

  6. Promote the release and verify it

    Promotion makes the staged release live for everyone with one conditional update of the current_release key. Nothing is invalidated: the router rewrites page URLs into the new release's folder, which has its own cache keys.

  7. Ship the next release and roll back

    Every later release repeats build, stage, preview check and promote. If a release is bad, rolling back is the same key update pointing at the previous release, whose files are still in the bucket and often still in edge caches.

  8. Remove everything and check for leftovers

    Cleanup deletes every AWS resource the lab created, in dependency order, then searches for anything left behind. Do it the same day you deploy.

Access

Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.

Cloud costs and boundaries

AWS usage is separate from project access. The AWS lab is billed only by use (CloudFront requests and transfer, CloudFront Functions and KeyValueStore reads, Lambda, DynamoDB on-demand, S3, CloudWatch Logs, custom metrics and alarms); a session of an hour or two costs well under one US dollar at October 2026 prices, and custom metrics and alarms are billed monthly if left running. Agree a budget and finish with the cleanup procedure the same day. The local stack costs nothing. This is a learning reference, not a hosted lab or a production-readiness guarantee.

Licence and completion

Vectametric Project Source Licence (2026-09-27): lawfully obtained source may be copied, modified and deployed for personal learning and interview preparation, including personal portfolio demonstrations with attribution. These permissions continue after online access expires. Do not resell or redistribute the Source Pack or its original source files, unchanged or modified. Commercial or client production use requires separate written permission. Third-party components, including the npm and PyPI packages the source installs, retain their own licences. See LICENSE.txt and the Project Source Licence section of the site Terms for the full rules.

Questions about projects

Do I need a cloud account?

You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.

Can I read the code with Learning Access?

Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.

Are cloud charges included?

No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.

Does the project include troubleshooting and interview preparation?

The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.

How long can I use the project?

The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy