Portfolio Source on GitHub

Case study · Full-stack · Oct 25 – Nov 15, 2026

Yüküm — a freight marketplace

Shippers post loads, carriers bid on them, the shipper picks an offer and the job is tracked until delivery and rated. I wrote the native SwiftUI app; the .NET 10 Web API and SQL Server database were built with a multi-agent AI setup under my direction.

30SwiftUI screens
24view models
65REST endpoints
20SQL Server tables

01 — Why

A real problem from home

My family farms in Mersin. When we ship agricultural supplies, a carrier from Ankara may quote 8–10 for a trip that costs 5: if he can't find a load for the way back he drives home empty, so that risk is priced in. Carriers wait in markets for days looking for a return load. Yüküm puts both sides in one open marketplace — shippers get competing offers, carriers fill empty return trips.

02 — The brief

What I was asked to build — and what was delivered

The project started from a written brief by a senior engineer: a freight marketplace with a RESTful .NET backend, SQL Server and a SwiftUI client, built step by step with a report and a roadmap rather than "let the AI do it". Every line of that brief is mapped below.

The brief asked forHow it was deliveredStatus
RESTful Web API that iOS, Android and Web could all use.NET 10 Web API, versioned /api/v1, OpenAPI 3.1 contract, client-agnostic JSONDone
.NET 10 / .NET Core, MSSQL, VS Code.NET 10 + EF Core 10 (LTS) · SQL Server 2025 in Docker · built in VS CodeDone
Login is checked in the API; on success it returns what the app needs as JSONIdentity + JWT; login returns access token, rotating refresh token and the user summaryDone
All CRUD in the API, returned as JSON; SwiftUI integrates65 endpoints, ProblemDetails errors, one decoding path on iOSDone
Two user types with separate registrations that can't enter each other's screens/servicesSeparate sign-up endpoints and forms, role policies, an authorization-matrix test on every endpointDone
EF Core with the Repository patternGeneric IRepository<T> + IUnitOfWork plus dedicated read repositoriesDone
SwiftUI with the patterns current job ads ask forSwift 6, @Observable MVVM, async/await, actors, protocol-based DI, Swift Testing + XCUITestDone
One generic GET/POST/PUT method with request/response models, reusable everywhereAPIClient.send<Response>(method, path, query, body); every service is one function per endpointDone
Make it work first, then a good-looking designMVP first (stages A–F), then a design system, dark mode and action animationsDone
Auto-login / remember me, the most robust wayRefresh token in Keychain, rotated on every use, stolen-token detection, silent restore on launchDone
Login / register, post a load, list loadsDone for both rolesDone
Filter by location, "near me 5 km" (not a priority)Radius filter + nearest-first sorting from district centroids; user location never storedDone
Save loads as favouritesFavourites with live counts for the ownerDone
Mail or push after posting a loadPush for offers, decisions, job stages and reviews; e-mail used for verification and password resetPartial
Track how many people viewed / bid (views first)Unique daily views, favourites and offer counts on the owner's listingDone
Bid page — the carrier sets the priceBid with amount, vehicle and estimated delivery dateDone
Only the shipper can post a loadEnforced by role policy and tested (403 for carriers)Done
Profiles show past agreed jobs on both sidesActive jobs, history and public profiles for both rolesDone
Filter / sort by price, location, reference price, destinationPrice, destination, vehicle, date, weight, distance; reference price shown on the detail pageDone
City → district selection from a ready table + service81 provinces / 973 districts, verified and seeded, cached endpointsDone
Push when a load is liked; push when an offer arrivesOffer push done (verified on a real iPhone); favourite push not yetPartial
Rate the carrier after delivery, highlight by rating1–5 rating + comment after delivery; offers can be sorted by ratingDone
Carrier profile with average rating and past reviewsDoneDone
Optional: AI check for banned wordsNot implemented (optional in the brief); report & block added insteadNot done
No "just let the AI do it": notes, report, roadmap, step-by-stepTechnical report, step-by-step plan, 24 decision records, daily log, commented codeDone
Professional project and folder structureClean Architecture on the backend; documented iOS folder guidesDone

03 — Features

Two roles, one product

Shipper

  • Post a load: origin / destination (province → district), weight, vehicle type, pickup date, budget
  • Compare offers with the carrier's rating, vehicle and promised delivery date; sort by 7 criteria; accept or reject
  • Live counters (views, favourites, offers) and a market reference price for the route
  • Track the job, chat, request mutual cancellation, rate the carrier

Carrier

  • Browse open loads with route, budget, vehicle, date and weight filters, a "near me" radius and "fits my vehicles"
  • Bid with a chosen vehicle and an estimated delivery date; favourite loads
  • Manage vehicles (plate, make, model, year); advance the job stage
  • Get every decision instantly through push notifications

Both roles: separate sign-up flows, auto-login, e-mail verification, forgot password, profile photo, public profiles, notification centre, report & block, account deletion.

04 — iOS

The SwiftUI app — where I spent most of my time

30 screens and 24 view models for two roles. Views only draw and forward taps; every decision lives in a view model, every request in a service, and every service goes through one client. Each folder starts with a guide file listing what is inside and which endpoint it calls.

Architecture

  • MVVM with @MainActor @Observable view models; views contain no networking or session code (audited)
  • Protocol-based DI: init(service: OfferServicing = OfferService()) — real by default, fakes in tests
  • Swift 6 strict concurrency, async/await, structured tasks (polling chat stops when the view disappears)
  • Folders: App · Design · Models (Auth, Listings, Offers, Networking, Security…) · ViewModels · Views

Networking & session

  • One generic client for every endpoint; services are one function per endpoint
  • Server errors (RFC 7807) decode once into APIError — Turkish message + machine code (e.g. email_not_verified opens the code screen)
  • AuthSession actor: access token in memory, refresh token in Keychain, device-bound; five concurrent 401s → one refresh
  • Silent restore on launch = remember me without storing the password

Platform features

  • APNs push: permission after login, token per device, tap → deep link to the right list, badge sync
  • CoreLocation "near me" radius — asked only when switched on, never stored
  • PhotosPicker profile photo, resized to a 512 px JPEG on device before upload
  • E-mail verification, forgot password with .oneTimeCode autofill, report & block (App Store 1.2)

Design & motion

  • Design system: Palette (light / dark / system), shared form components, loading states
  • Role-based action animations: shipper — a parcel gets taped / cut; carrier — a tyre track / unloading
  • RealityKit login: one box falls with physics recorded once and replayed identically, then snapshotted to an image to save battery
  • Accessibility identifiers drive 7 XCUITest flows (login, sign-up, forgot password, auto-login…)

Two pieces of the code

// One request method for every endpoint (Models/Networking/APIClient.swift)
func send<Response: Decodable>(_ method: HTTPMethod = .get, _ path: String,
                             query: [URLQueryItem] = [], body: (any Encodable)? = nil,
                             authorized: Bool = true, fallback: String = "Bir hata oluştu.")
                             async throws -> Response

let offers: [CarrierOffer] = try await api.send(.get, "/api/v1/offers/mine")

// Concurrent 401s share ONE refresh (Models/Networking/AuthSession.swift)
actor AuthSession {
    private var refreshTask: Task<LoginResponse, Error>?
    func refresh() async throws -> LoginResponse {
        if let task = refreshTask { return try await task.value }   // already refreshing → wait for it
        let task = Task { try await performRefresh() }
        refreshTask = task
        defer { refreshTask = nil }
        return try await task.value
    }
}

05 — Architecture

Clean layers on both sides

iOS (SwiftUI)                                   .NET 10 Web API
View ─► ViewModel ─► Service ─► APIClient ══HTTPS/JSON══► Controller ─► Handler ─► Repository / UoW ─► SQL Server
         @Observable   1 fn = 1 endpoint                    (thin)      (rules,      (EF Core 10)
                       AuthSession actor ◄── refresh token rotation     validation)
                       Keychain                                                  │
        push ◄══ APNs (HTTP/2) ◄── PushWorker (BackgroundService) ◄── outbox ◄──┘

Dependency rule: Domain knows nothing; Application knows only Domain and declares interfaces; Infrastructure implements them (EF Core, Identity, APNs, e-mail); Api wires everything together. Business rules are testable without a database.

One request, end to end — a carrier places a bid

  1. The detail screen calls ListingDetailViewModel.submit(), which validates the form locally.
  2. OfferService.create() → APIClient.send(.post, "/api/v1/listings/{id}/offers") adds the Bearer token. On a 401 the AuthSession actor refreshes once — even if five requests fail at the same moment — and retries.
  3. CreateOfferHandler: FluentValidation → is the listing open? → does the carrier own a complete vehicle? → is the delivery date within pickup + 90 days? → has either side blocked the other?
  4. The offer and a notification row are saved in one transaction (outbox). A background worker sends the APNs push; tapping it deep-links the shipper to the offers screen.
  5. Any failure returns RFC 7807 ProblemDetails with a Turkish message, decoded in one place and shown to the user.

06 — Backend

.NET 10 Web API

TopicHowWhy
Clean ArchitectureDomain / Application / Infrastructure / Api + unit & integration test projectsRules independent of DB and web framework
CQRS-liteICommandHandler / IQueryHandler, auto-registered; startup fails if a command has two handlersClear read/write split without MediatR (now commercially licensed)
EF Core 10Generic IRepository<T> + IUnitOfWork; dedicated read repositories where SQL mattersRepository pattern; filters compile to one SQL query
EntitiesCentral timestamps, soft-delete query filter, RowVersion optimistic concurrencyTwo simultaneous accepts can't both win
ValidationFluentValidation with Turkish messages; one PasswordPolicy shared with IdentitySame rule everywhere, field-level errors
AuthASP.NET Identity (PBKDF2), JWT (15 min), rotating refresh token (30 days, hashed, device-bound, reuse revokes the family), lockout 10 → 5 min, rate limitingSecure "remember me"
SearchDynamic predicate, stable paging, price/date sorting, Haversine distance from district centroids"Near me" without storing user location
Reference priceMedian of completed jobs on the same route + vehicle, last 180 days, min 3 samplesOne outlier can't mislead
PushOutbox row in the same transaction → PushWorker → APNs HTTP/2 with an ES256 provider tokenNo lost notifications
E-mail6-digit codes stored as SHA-256 hashes, 15 min, 5 attempts, 60 s cooldown; Resend in productionVerification & reset without account enumeration
ContractOpenAPI + Scalar UI, /api/v1, camelCase JSON, enums as strings, UTC ISO-8601The iOS client decodes one contract

07 — Technology choices

Why these technologies

Before writing code I researched 2026 job postings and official docs (Microsoft Learn, Apple Developer) and wrote the decisions down in a technical report. The rule: no features beyond the brief — research only updated the technology choices.

TopicChoiceWhy
Runtime.NET 10 + EF Core 10 — both LTS (supported to Nov 2028)Requested in the brief; long support window
ArchitectureClean Architecture + CQRS-lite (command/query handlers, feature folders)Most backend job ads list both; keeps rules testable
Mediator / mapperNo MediatR, no AutoMapper — handlers via DI, mapping by handBoth moved to commercial licences in 2025; knowing why I avoided them is part of the design
API docsBuilt-in Microsoft.AspNetCore.OpenApi (OpenAPI 3.1) + Scalar UITemplates dropped Swashbuckle since .NET 9
AuthJWT + rotating refresh tokens + role policiesWhat job ads ask for (JWT, RBAC); secure remember-me
TestsxUnit + NSubstitute + Testcontainers (real SQL Server)Integration tests that hit a real database, not an in-memory fake
DeliveryDockerfile + docker-compose, GitHub Actions CIOne-command environment; every push builds and tests
iOS UISwiftUI (UIKit only if needed)Baseline expectation in 2026 iOS job ads
iOS architectureMVVM + protocol-based DI; VIPER/TCA compared but not usedVIPER is overkill for most apps, TCA is niche; MVVM is the default
ConcurrencySwift 6 async/await, @MainActor view models, an actor for token refreshApproachable concurrency in Xcode 26; actors prevent double refreshes
StateObservation framework (@Observable, @State, @Bindable)Modern replacement for ObservableObject
NetworkingURLSession + one generic APIClient, no third-party librariesExactly what the brief asked for

08 — Database

SQL Server 2025 · 20 tables · 24 migrations

Identity users and roles, shipper/carrier profiles, vehicles, refresh tokens, provinces and districts (seeded from a verified JSON), listings, offers, messages, reviews, favourites, daily views, notifications, device tokens, blocks, reports and verification codes. Integrity is enforced in the database as well: filtered unique indexes (one active offer per carrier per listing), unique favourite / view / block pairs, cascade rules and RowVersion columns. Integration tests run every endpoint against a real SQL Server started by Testcontainers.

09 — Security & privacy

Built in, not bolted on

10 — Quality

Tested and continuously integrated

Swift Testing covers every view-model function plus a contract test for each service endpoint; XCUITest drives the main flows. The backend runs every endpoint against a real SQL Server in Docker (Testcontainers). GitHub Actions builds and tests on every push.

11 — Built with a multi-agent team

How it was built: me on iOS, a team of AI agents on the backend

The brief asked for the backend to be built "with an agent mindset" — but not as "let the AI do it". So the work was split on purpose:

iOS — my code

  • I built the app screen by screen in Swift — networking, session, view models and views — with the agents explaining concepts along the way
  • For the later features I pair-programmed with the agents and reviewed every change before it went in
  • Every file is commented with what it does and what it connects to, so I can walk through any line

Backend & DB — a multi-agent team, directed by me

  • Claude Code CLI was the main agent; Codex, Antigravity and OpenCode worked as its sub-agents
  • Together they implemented the .NET API, EF Core migrations and SQL in small slices
  • Each slice: I approved the plan, the agent wrote code + tests, I checked it in Scalar and on the device, then it was committed
  • Research before decisions (2026 job ads, Microsoft & Apple docs) — recorded in 24 decision records

The order was fixed in a written plan: database → repository → handler → controller → API check → tests → iOS model → view model → view → device test → commit.

  1. A
    Setup

    .NET 10 SDK, SQL Server 2025 in Docker, repository layout, product naming, written plan and technical report.

  2. B
    Backend foundation

    Four-project Clean Architecture solution, global ProblemDetails errors, Serilog, /api/v1 versioning, user-secrets, BaseEntity (timestamps, soft delete, RowVersion), DB health check, generic repository + unit of work, CQRS-lite handler pipeline.

  3. C
    First connection

    81 provinces / 973 districts verified against multiple sources and seeded; cached anonymous endpoints; the generic iOS APIClient talks to the API for the first time.

  4. D
    Identity

    Two registrations (shipper / carrier), login with lockout, rotating refresh tokens bound to a device, role policies, rate limiting, an authorization-matrix test; Keychain-based auto-login on iOS.

  5. E
    Listings

    Create / edit / cancel loads; carrier search with dynamic filters, sorting and stable paging.

  6. F
    Offers — MVP

    Bidding, accept / reject with optimistic concurrency (two accepts at once → only one wins), my offers, history. First full flow on a real iPhone.

  7. G
    Jobs & ratings

    Job stages (picked up → in transit → delivered), completion, 1–5 reviews, carrier and shipper public profiles.

  8. H
    Engagement

    Favourites, unique daily views, live counters for the listing owner.

  9. I
    Notifications

    In-app notification centre; outbox + background worker + APNs push verified on a device; tapping a push deep-links to the right screen.

  10. J
    Location & price

    "Near me" radius filter and nearest-first sorting; market reference price (180-day median).

  11. K
    Hardening

    Account deletion (anonymisation), report & block, terms of use, e-mail verification, forgot password with real e-mail (Resend), privacy manifest, CI.

  12. L
    Polish

    Design system with dark mode, 2D action animations, a RealityKit login scene, vehicles, chat, mutual cancellation, profile page.

12 — What's next

Honest status, source & docs

Feature-complete and running end to end on a real iPhone against the API. Deliberately not done yet: public hosting (server, domain, HTTPS), an admin panel for reviewing reports, TestFlight / App Store submission, OpenTelemetry tracing and a Bayesian rating score.

Source and documentation

3D model: “Truck” by ROY (Sketchfab), CC BY 4.0 — recoloured, glass cargo box and load added.