Storefront

Concept for a shopping cart system using sveltekit and hasura.

You can add items to your cart and it displays the sum directly from the database using computed fields and the Sum function, interesting because the field is a money field so it handles on DB level things like rounding and float parsing.

This idead was intended to avoid sum of values and float parsing on javascript for monetary precision.

Products

Canon EOS 60D

Canon EOS 60D

$4,000.22
Canon EOS 100D

Canon EOS 100D

$6,000.12
Canon EOS X9i

Canon EOS X9i

$7,500.65
XL cat food

XL cat food

$219.99