VeloDev
arrow_backBack to Portfolio
Case Study

Coșul Local App

Marketplace Delivery PWA

Coșul Local is an offline-ready Progressive Web Application (PWA) connecting Romanian consumers directly with regional food producers. It streamlines local food hubs supply chains by offering a high-performance marketplace interface, dynamic client order tracking, and delivery log management.

RoleLead Frontend Engineer
TimelineOctober 2025
CategoryPWA / E-commerce
DeploymentVercel / Supabase SSR
Technology Stack
Next.js 16React 19TypeScriptSupabase SSRZustandshadcn/uiTailwind CSSZodreact-hook-form
Lighthouse Audits (Production Sandbox)
98
Perf
100
A11y
100
Best Pr.
100
SEO
LCP (Speed)0.8s
INP (Response)45ms
CLS (Layout)0.01

* TODO: Replace with your actual verified Core Web Vitals and Lighthouse scores.

https://cosul-local.ro/consumer/dashboard
WORKSPACE SCREENS
Click on tabs to switch views. Click on the image to open full size.
Consumer Dashboard
zoom_inZoom Screenshot

infoConsumer Dashboard

Main workspace greeting users, displaying key statistics cards (pending, confirmed, delivered orders) and order list filters.


Key Capabilities & Features

Coșul Local integrates client-server synchronization, offline cart storage, and responsive views to deliver a unified local food hub app.

query_stats

Consumer Statistics Overview

Responsive welcome headers displaying 4 themed cards representing total, pending, confirmed, and delivered order counts mapped instantly to database states.

filter_list

Interactive Order Filters

Client-side filter toggles allowing users to instantly group orders by status (All, Pending, Confirmed, Delivered, Cancelled) with live indicators showing order counts per status.

shopping_cart

Zustand Offline-Ready Cart

A light weight state store managing product quantities and delivery schedules locally, ensuring users don't lose their cart items when moving offline.

person

Dual Roles Management

Decoupled authenticated workspaces separating Consumer profiles from Producer inventory managers, featuring custom theme templates and tailored actions.

Next.js & Supabase Integration

Technical Architecture

Coșul Local leverages Next.js 16 App Router along with Server Actions to manage server mutations securely. Database tables are hosted in a localized Supabase server (run via Docker locally) using auto-generated TypeScript schemas.

devicesFrontend Layer

  • App Router Layouts: Nested routes dynamically differentiating public `/piata` catalog from `(dashboard)/consumer` profiles.
  • Zustand store: Manages shopping cart updates and synchronizes with localStorage.
  • shadcn/ui & Tailwind: Modular design tokens ensuring quick style changes and mobile-first responsiveness.

boltServer Logic (Actions)

  • Secure Server Actions: Functions executing database writes (e.g. `consumer-orders.ts` or profile updates) with integrated validation.
  • Path Revalidations: Triggers Next.js `revalidatePath` on order submission/cancellation to ensure instant client sync.
  • Zod Validation: Strict schemas validating user settings and category updates.

cloud_queueSupabase Backend

  • Supabase SSR client: Manages cookie-based session verification for server-side fetches.
  • PostgreSQL Database: Hosts relational tables (profiles, products, orders, delivery_locations).
  • Supabase Storage: Buckets housing uploaded farm product images securely.

Project Screen Library

Click on any of the screenshots below to open them in the lightbox viewer.

Consumer Dashboard
zoom_in
Marketplace Catalog
zoom_in
Product Details View
zoom_in
Product Added to Cart
zoom_in
Producers Directory
zoom_in
Producer Profile Details
zoom_in
Producer Workspace
zoom_in
Mobile iPhone View
zoom_in