Program 01 · Module 05 of 8
Module 05: Frontend and API Integration
Build the screens that let people do the work, and connect them to your API. You handle loading, empty and error states and check accessibility as you go, not afterwards.
- Suggested study time
- 6–8 hours
- Prerequisites
- Module 4 complete.; Basic HTML, CSS and TypeScript knowledge.
Sign in to track your progress. Every lesson stays free to read without an account.
Learning outcomes
By the end of this module you will be able to:
- Plan screens from workflows and acceptance criteria.
- Connect the interface to the API contract with typed data access.
- Handle loading, empty, error and offline states deliberately.
- Check keyboard use, labels and contrast before calling a screen done.
Lessons
- 5.1
Planning Screens from Workflows
Turn a workflow map and acceptance criteria into a short list of screens, and write down every state each screen can be in before you build anything.
35 min - 5.2
Building Components with an Assistant
Ask an assistant for one small interface component at a time, give it clear limits, and review each piece before you build the next.
40 min - 5.3
Calling the API from the Frontend
Write one typed API client that follows your contract, returns data or a problem instead of throwing, and test it with a fake fetch.
40 min - 5.4
Loading, Empty and Error States
Design what a person sees while waiting, when there is nothing to show and when something fails, so that no screen is ever blank or silent.
35 min - 5.5
Accessibility Basics for Forms
Label every field, make the form work with a keyboard, and tell everyone about errors, then record the checks you made so the screens can be trusted.
40 min
About 3 h 10 min of lessons in total.
Practical assignment
Frontend for the capstone
Build the screens for the main workflow of your capstone application and connect them to your API.
Deliverables
- Screens for the main workflow, working end to end against the API.
- Visible loading, empty and error states on each screen.
- An accessibility check record covering keyboard, labels and contrast.
- A list of acceptance scenarios and the screens that satisfy them.
Validation checklist
Use this to check your assignment before you move on.
Knowledge check
Show the answer and explanation
Answer: A. New users meet the empty list first, so a blank screen reads as broken. The other options are not distinct states that cause trouble.
Show the answer and explanation
Answer: B. Frontend code is sent to every visitor, so any key in it is public. Restriction is tempting as a defence, but a visible key can still be abused within its allowed uses; minifying only obscures it.
PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.