All projects

Case study · School project

KameraPH

The marketing and engagement module of KameraPH, a team-built camera marketplace: a personalised feed, ad campaigns, wishlists, follows, notifications and chat.

KameraPH cover
Role
Module developer
Type
School project
Timeline
Nov 2026
Status
Completed

Overview

KameraPH is a camera marketplace built as a class project, split into ten modules developed separately and connected through a shared database and APIs. I built Module 4, Marketing and Engagement: everything that brings shoppers back and helps shops reach them.

It runs on its own for demos and grading, with its own demo data, and switches to the shared database and the other modules' APIs through configuration alone.

Key features

  • For You feed

    Personalised picks scored from each shopper's views, clicks, searches, wishlist and cart adds, with a reason shown for each.

  • Campaigns

    Hero banners, in-grid cards, slide-ins and pop-ups with schedules, priorities and placement limits, plus impressions, clicks and click-through rate.

  • Wishlist and following

    Save listings to a wishlist and follow shops, with follower counts on every shop.

  • Notifications

    One inbox for this module's events and other modules', and shops can notify their followers about new products or offers.

  • Buyer and seller chat

    Conversations about a listing or an order, with photo attachments.

  • Reviews and product photos

    Reviews with photos and star ratings on product cards, and up to four photos per product for sellers.

Highlights

  1. A recommender built from strategies

    The feed mixes four strategies, category affinity, trending, top rated and discovery, each its own class behind one interface. Interactions count less as they age, halving in weight every 14 days.

  2. Strict layers

    API files only read the request and call a service, services hold the business rules, and repositories hold the SQL, always as prepared statements. The user's ID only ever comes from the session, never from the request.

  3. Built to stand alone

    Users, shops and products from other modules are read only through data-source classes that switch between local demo data and the other modules' APIs, with a clean fallback when one is down.

  4. Tested on both sides

    58 PHP test scripts cover the backend, and 51 Vitest files cover the React frontend.

Screenshots

The For You page with campaigns and picks
Product page with reviews
Campaign management

Built with

Frontend
React, TypeScript, Vite, Lucide icons
Backend
PHP 8 (object-oriented, no framework), REST API
Database
MySQL / MariaDB, PDO
Testing
Vitest, Testing Library, PHP test scripts
Tooling & Hosting
ESLint, Prettier, XAMPP, Azure App Service