Company
Date Published
Author
Pierre Burgy
Word count
855
Language
English
Hacker News points
None

Summary

The tutorial outlines the process of building an e-commerce website using Strapi, Nuxt.js, GraphQL, and Stripe, focusing particularly on setting up a restaurant and dish database. It begins with creating a Strapi project and successfully displaying a list of restaurants, then progresses to creating a "dish" content type and establishing a one-to-many relationship with restaurants. The guide explains how to add entries to the database and ensure the content is accessible through the API. It also covers the creation of dynamic pages in Nuxt.js, demonstrating how to use a dynamic route to display dishes associated with each restaurant. The use of GraphQL queries to fetch restaurant and dish data is detailed, with instructions on setting up a template to facilitate data display on dynamic pages. The tutorial promises that the next section will guide users in developing a full-featured shopping cart, while also mentioning the origins of Strapi and its co-founder, Pierre, who advocates for open-source and remote work environments.