Skip to content
mzbali.

Storetail

Online shop with a cart, order history and Stripe payments.

2023.NET, React, PostgreSQL, Docker

Code

Storetail

What it is

Storetail is an online shop. You can browse and search the catalogue, filter by brand and type, add items to a basket and pay by card with Stripe. Signed-in users can see their past orders and save their address at checkout.

How it is built

  • API: .NET 8 with Entity Framework Core and PostgreSQL. Accounts use ASP.NET Core Identity with roles, and the API issues its own JWTs.
  • Client: React with Vite, Material UI and Redux Toolkit. Forms use React Hook Form with Yup validation.
  • Payments: the API creates a Stripe payment intent for the basket. A Stripe webhook then marks the order as paid, so the client never decides that on its own.

Screenshots

Product details page

Product Details Page

Basket with items and order summary

Basket

Build and deployment

The React build is served by the .NET API, so the whole shop ships as one Docker image. A GitHub Actions workflow builds that image on every push to main, pushes it to the GitHub Container Registry and deploys it to CapRover.

It ran on an Azure VM until I shut that server down, so there is no live demo at the moment.

What I learned

  • Payment status should come from Stripe through the webhook, not from the browser.
  • Serving the React build from the API kept deployment down to one image and one app on the server.
← All projects