/plushcap/analysis/hasura/building-customizable-ecommerce-backend-with-hasura-graphql-apis

Building a customizable e-commerce backend with Hasura

What's this blog post about?

This post discusses building a customizable e-commerce backend using Hasura. The author outlines the use of technologies such as PostgreSQL for data storage and retrieval, Hasura Cloud for APIs and GraphQL engine projects, and Node.js for custom logic like authentication, cart, and order placements. The post then delves into the database schema and user workflow, focusing on core components like product listing with search, user authentication, cart page, coupon code validations, place order and payment, and email notifications to customers. The author guides through setting up a Hasura Cloud project, data fetching APIs using GraphQL, filtering and sorting products, implementing product search functionality using Postgres functions or external services like Algolia, and fetching cart items with user-specific permissions. The post also covers user authentication using JWT tokens and custom business logic for add to cart inventory validation, coupon code validation, and payment processing with Stripe. Lastly, the author discusses performance and scaling aspects of Hasura, emphasizing its lightweight nature, high performance, and ability to handle up to 1 million live subscriptions. The post concludes by highlighting that most data fetching requirements can be met using out-of-the-box GraphQL APIs from Hasura, with the option to quickly extend or override these APIs as needed.

Company
Hasura

Date published
May 1, 2020

Author(s)
Praveen Durairaju

Word count
1792

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.