Company
Date Published
Author
Ryan Belke
Word count
803
Language
English
Hacker News points
None

Summary

The tutorial is a part of a series on building a Deliveroo clone using Next.js, GraphQL, Strapi, and Stripe, focusing on creating and managing content types in Strapi, specifically for restaurants and dishes. It guides users through setting up a Strapi project, creating a 'dish' content type with various attributes including name, description, image, price, and a relation to restaurants. The tutorial details setting up roles and permissions, adding dishes via the Content Manager, and creating a route to display dishes for specific restaurants using their ID. The tutorial includes code snippets, such as a GraphQL query to fetch restaurant dishes and a utility function to convert cents to dollars. Users are directed to test their application on localhost and are given a preview of the next section, which will cover user authentication. The source code is available on GitHub, and the tutorial is credited to contributors Fredrick Emmanuel and Paul Bratslavsky, with acknowledgment of Ryan's contributions to the Strapi community.