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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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
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.
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
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Cleanup deletes every AWS resource the lab created, in dependency order, then searches for anything left behind. Do it the same day you deploy.
Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.
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.
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.
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.
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.
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.
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.
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.
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