Jens Danneels, back to home page
NL, Nederlands

Web Development & Branding

DISC Apparel

Client
Final assignment - Mobile Development
Tools
Figma
React
TailwindCSS
PocketBase
Year
2024

At a glance

Context
Final assignment, Mobile Development, 2024
My role
Solo: design in Figma and the full build, front end and PocketBase setup
The problem
A webshop for DISC Apparel, a streetwear brand I made up for the assignment. Shoppers should be able to browse, pick a colour and size, order without an account and ask a question about a specific product.
What I built
  • A product catalogue from PocketBase with a category filter, five sort options and search as you type
  • A cart that keeps each colour and size as its own line, survives a page reload and opens as a slide-in drawer
  • Checkout with or without an account, three shipping options, and an order tracker that works with order ID and email
  • A live support chat per product, with read receipts
  • An admin back office for products and their images, users, order status and chat tickets
The hard part
The support chat. On a product page, a logged-in customer presses 'Chat with admin'. The app first looks for a chat that already links this customer to this product, and only creates one when there is none, so each customer gets one thread per product. Messages appear live: the chat box subscribes to PocketBase's realtime feed and adds new messages for the open chat. When someone opens a chat, the other side's messages are marked as read, which turns the single tick into a double tick. Admins log in with PocketBase's separate admin accounts and see every chat as a ticket they can answer, close or reopen.
What I'd do differently
The checkout trusts the browser: it adds up the total there and writes the order straight to the database, and the payment choice is only a label. Next time I would calculate the price on the server from the stored product prices and use a real payment provider.
Outcome
Delivered as my final assignment in June 2024, running on Vercel with PocketBase as the backend.

Project Details

Shopping

Products, categories, favourites and orders come from PocketBase. You can filter by category, sort by price or name, and search as you type. On a product page you pick a colour and size; the cart keeps each combination as a separate line and survives a page reload.

Ordering without an account

  • Checkout works with or without logging in.
  • Three shipping options, with the total updating as you choose.
  • Each order stores a copy of the cart items at the time of purchase.
  • Anyone can track an order with its ID and email; logged-in customers also see their order history.

Support and admin

Every product has a 'Chat with admin' button that opens one live thread per customer and product. Admins log in separately and manage products, users, order status and the chat tickets from a small back office.