Back to projects

Pokemon Mystery Box

Pokemon Mystery Box
Amrood Labs

Project Overview

Pokemon Mystery Box is a platform designed to fetch and store order details from a WordPress-based e-commerce site. The system synchronizes order records, extracts customer information, and allows clients to create mystery boxes based on those orders.

To handle synchronization, an AWS Lambda function was implemented to fetch the latest data from WordPress at regular intervals, overcoming API failures and inconsistencies.

Additionally, the platform features a lucky draw system to randomly select winners from the collected orders, ensuring fair and automated prize distribution.

Key Features

WordPress Order Synchronization

Fetches and stores order details from WordPress, ensuring real-time data synchronization with the platform.

Customer Data Extraction

Extracts customer information from orders and stores them in a structured format.

AWS Lambda-based Continuous Sync

A Lambda function automatically fetches the latest data, handling API failures with conditional sync mechanisms.

Mystery Box Creation

Enables clients to create mystery boxes based on orders, dynamically associating products with boxes.

Lucky Draw System

Automates the selection of a random winner from stored customer orders, ensuring fair prize distribution.

Challenges & Solutions

Unreliable WordPress API Responses

The API occasionally failed to return data, disrupting synchronization.

Solution:

Implemented a continuous sync system with retries and fallbacks to maintain data integrity.

Handling Large Order Data Sets

Processing a high volume of orders required efficient storage and retrieval mechanisms.

Solution:

Optimized database queries and indexed customer records to enhance performance.

Fair and Transparent Lucky Draw

Ensuring a truly random selection process for winners was crucial.

Solution:

Utilized cryptographic randomization techniques to guarantee unbiased winner selection.

Project Gallery

Dashboard displaying synchronized orders and customer details.

Dashboard displaying synchronized orders and customer details.

Mystery box configuration and lucky draw winner selection interface.

Mystery box configuration and lucky draw winner selection interface.

Project Details

Timeline

Aug 2024 - Present

Company

Amrood Labs

My Role

Full Stack Developer

Technologies Used

Next.js
MongoDB
AWS Lambda
NextAuth
OAuth2
WordPress API
React
MUI

Testimonial

Pokemon Mystery Box streamlined our order management and introduced an exciting lucky draw system for our customers!
John Doe

John Doe

E-commerce Manager