<project · beginner>
Recipe box
A front end that lists recipes from a small API you wrote yourself.
Build recipe box one manageable milestone at a time. Keep your decisions, tests and finished work together so your portfolio shows what you learned, not only the final result.
- React
- REST API
- Data modelling
- Integration tests
Build it step by step
Sketch the recipe model
Use React for the interface and Node.js with Express for a local API. Define recipe IDs, titles, ingredients and instructions, using original recipes or properly credited content.
Build the small API
Store a few recipes in JSON or SQLite and implement list and detail endpoints. Validate route IDs and return a clear 404 for missing recipes.
Connect the interface
Fetch the list and render recipe cards with links to detail views. Add loading, empty and error states rather than assuming a request always succeeds.
Make recipes readable
Use semantic headings and ingredient lists. Support phone widths and ensure navigation, search fields and links work with the keyboard.
Test front to back
Test a list request and a recipe detail request, then automate opening a recipe in the browser. Simulate the API being unavailable and check the recovery message.
Share your finished work
Commit your source and a README explaining setup, decisions, tests and limitations. Remove secrets and personal data, credit dependencies and assets, then add the public repository or portfolio link and an optional working demo to LEARN Showcase. Hosting is optional; a clear repository or design case study is enough.
// done when
- List and detail data come from your API
- Missing recipes show a 404 state
- Network errors are visible
- Recipes remain readable on a phone
- README includes setup, credits and limitations; shared links are safe and accessible
// stretch goals
- Add ingredient search
- Add serving-size adjustment
Finished? Show it off
Add your project to the LEARN showcase so other learners and employers can see it.
Sign in to add your finished project to the showcase.