Build an E-commerce Website With Sveltekit and Strapi

E-commerce websites have become increasingly popular due to their convenience and accessibility. They allow users to buy goods over the internet and have them delivered. In this tutorial, you will learn how to build an e-commerce website using SvelteKit and Strapi CMS.


This is a companion discussion topic for the original entry at https://strapi.io/blog/how-to-build-an-e-commerce-website-with-sveltekit-and-strapi

Why create an UserInfo collection with email and password when there is a User collection by default with email and password?

UserInfo collection should be named Customer.

Another thing I wonder is why you choose to have the userId and productId as text fields in cartItem collection instead of creating a relation to user and product?

I stuggled to sync product data between Strapi and my frontend. What helped was setting up webhooks in Strapi to trigger updates in real time. Also, for handling payments smoothly without writing tons of backend code, I integrated payinsider.com, which worked really well with my SvelteKit setup and didn’t get in the way of managing content through Strapi.