We will fetch products, and their categories, along with creating pages for each, and an index page to show everything.
Let's get setup with the initial Sapper + Svelte boilerplate, and customize it to our needs.
In this video we'll install and setup Commerce.js — You'll need an account to continue, or you can continue with the demo public API key:
In this video we'll use the async
preload function to fetch our merchant information, categories, and products for
In this video we'll go ahead and create the products index page at
In this video we'll create the index page for our categories at
In this video we'll handle creating pages for all our categories using the
Just like we did for the category pages, let's handle creating pages for each of our products using the