50% Faster Time to Market: Accelerating E-commerce Portal Development with Hasura
E-commerce

50% Faster Time to Market: Accelerating E-commerce Portal Development with Hasura

Problem Statement

Our client aimed to quickly launch a merchant portal to make it easier for merchants to sell their products online and to stay competitive. The two main challenges involved speeding up the app's development for a quick market launch, and creating a wide range of APIs that work well for both web and mobile versions, addressing different data needs.

Client Info

Our Client, a leading marketplace in the e-commerce sector, offers extensive product range and focuses on digital innovation to enhance the online customer experience.

Outcomes

Outcome icon

50% Reduction in Development Time

Outcome icon

30% Savings on Cloud Infrastructure

Outcome icon

Supports 1 Million Live Data Connections

How did BeautifulCode do it?

We started by evaluating various backend technologies for the e-commerce merchant platform, ranging from conventional solutions like microservices, monolithic structures to modern cloud-native solutions such as Hasura, PostGraphile.

bar chart showing comparison of backend solutions
Comparison of Backend Solutions

In our decision-making, we prioritized criteria such as development speed, support for diverse data needs, scalability potential, and security robustness. Our final decision was to go with Hasura, primarily for its rapid development capabilities. This decision was influenced by Hasura’s ability to provide ready to use GraphQL APIs, its capacity to handle diverse data needs, its robust access control mechanisms, and the comprehensive scalability and security features offered by the Hasura Cloud.

Leveraging Hasura's Auto-Generated APIs and Authorization

During development, we took advantage of Hasura's auto-generated APIs, which were automatically created from our tables in the underlying PostgreSQL database. This provided us with comprehensive functionalities for sorting, filtering, and associating data. This made our development faster. Hasura let us set specific permissions for insert, select, update, and delete operations. We could control access down to each row and column, making it secure and customized for different user roles on the portal.

Supporting Custom Business Logic with Remote Schema

Our client used microservices for inventory management and order processing in their customer portal. They wanted to reuse these services for their new merchant portal. We connected these microservices to Hasura using the Remote Schema feature, adding their endpoints into Hasura's GraphQL API. This created a unified backend solution, combining different services into one system for the merchant portal.

Hasura Event Triggers for Email Notifications

We set up automatic email notifications with Hasura's Event Triggers, which react to certain user events like new sign-ups, orders, or account changes. For example, after a new user signs up, a trigger calls a cloud function set as webhook to send welcome email.

Technologies Used

React
React for the interactive fronten
Hasura Engine
Hasura Engine for Instant GraphQL APIs and Unified Backend
Hasura Cloud
Hasura Cloud for enhanced security and scalabilit
Firebase
Firebase for user authenticatio
Google Cloud
Google Cloud for email notification trigger
PostgreSQL
PostgreSQL for the database solution
GraphQL
GraphQL for the communication protocol

© 2025 BeautifulCode. All rights reserved.