Skip to content
KB
KB—101Case study
Work · 01 / 02

SkillSwap

A peer-to-peer skill exchange for university students. Teach what you know, earn time-bank credits, spend them learning something new. One backend serves a website and an Android app.

Status
Ongoing
Timeline
7–17 Nov 2026 (commit history)
Role
Independent developer — designed and built from scratch
Context
University subject and hackathon project. Registered as a team for academic and hackathon participation; designed and built by me alone.
Stack
Node.js · Express · PostgreSQL (Supabase) · HTML, CSS, JavaScript · Kotlin · Jetpack Compose · Room · WebRTC
Database tables
27
Base schema plus 11 migrations
API routes
80
34 of them serve the Android app
Website tests passed
80/80
Run 22 Nov 2026, PostgreSQL 16
Backend, two clients
1
Website and Android app

Screens

06 screens · website and android app

SkillSwap website on a phone, home screen with time-bank credits, open swaps and two-way matches.
SkillSwap website lessons page listing a lesson with weekly free times and a book button that costs one credit.
SkillSwap Android app browse screen with search, a live activity ticker, swipe to swap and perfect matches.
SkillSwap Android app My lessons screen with upcoming lessons, check-in, video, calendar and AI plan buttons.
SkillSwap website swap page with status history and a review.
SkillSwap Android app screen for publishing a skill to teach.

01 / 06 · Website

Home

02 / 06 · Website

Lessons

03 / 06 · Android app

Browse

04 / 06 · Android app

My lessons

05 / 06 · Website

Swaps

06 / 06 · Android app

Teach

Website

Android app

Screenshots from the project repositories. Every person and record shown is demo data.

On this page
  1. 01 Overview
  2. 02 Problem
  3. 03 Solution
  4. 04 Product experience
  5. 05 Technical architecture
  6. 06 Implementation
  7. 07 My contribution
  8. 08 Challenges and lessons
  9. 09 Current status
  10. 10 Future direction

Overview

SkillSwap is a skill exchange for students. A member lists a practical skill they can teach, says what they want to learn, and is matched with people who fit. Lessons last an hour and are paid in time-bank credits instead of money: teaching an hour earns one credit, learning an hour spends one.

There are two clients, a mobile-first website and a native Android app. They share one server and one database, so an account, a booking or a review made on one appears on the other.

It began as a university course project (a database-backed website for a Big Data course) and was extended for a university hackathon. Both were registered as team entries, but I designed and built the product myself. This page is about the product and how it is built, not about the competition.

Problem

Students know useful things that other students want to learn, such as a language, a tool or an instrument. Paid tutoring prices many of them out, and informal favours are hard to arrange and easy to abandon. SkillSwap tests a simple idea: if time is the currency, anyone who can teach something can afford to learn something.

Solution

  • Time bank. One hour taught is one credit earned. Every change is written to a credit ledger.
  • Matching. Search by skill, category or city. Two-way matches, where each person can teach the other, come first.
  • Swaps and lessons. A direct swap (my skill for yours) has its own request flow and status history. A lesson is a one-hour slot booked with a credit.
  • Trust. A lesson only counts once the learner enters the teacher’s 4-digit check-in code (shown as a QR code in the app). Only a finished lesson can be rated, and only once.
  • Meeting. Lessons can happen in person or in a video room built into the product.

Product experience

These journeys are covered by the website’s automated API tests or are visible in the shipped screens:

  1. Join. Register with email and password, or continue with Google or Telegram. Set a name, city, bio, time zone and weekly availability.
  2. Say what you offer and what you want. Add skills from a shared catalogue in both directions.
  3. Find someone. Browse and search. On Android, swipe through a card deck, where a two-way match shows “It’s a swap!”.
  4. Swap. Send a request. It can be accepted, declined, cancelled or marked done, and each change is logged. After a completed swap each side can leave one review.
  5. Book a lesson. Teachers publish free slots. A learner books one for a credit, checks in with the teacher’s code, meets in person or by video, and rates the lesson.
  6. Stay in touch. Messages, notifications and a learning workspace with milestones. Credits and notifications update live.

Technical architecture

SkillSwap architecture A website and an Android app both call one Express server over HTTPS. The website uses a session cookie and the /api routes; the app uses a bearer token and the /api/mobile routes. The server reads and writes a PostgreSQL database hosted on Supabase, pushes live updates with server-sent events, relays WebRTC signalling, and optionally uses MongoDB, a Telegram bot and Cloudflare TURN. Video and audio flow directly between the two devices. WEBSITE HTML · CSS · vanilla JS 20 pages, no framework session cookie ANDROID APP Compose · MVVM · Room HttpURLConnection bearer token (Keystore) /api /api/mobile EXPRESS SERVER Node.js on Render 80 routes · validation SSE live events WebRTC signalling relay POSTGRESQL · SUPABASE 27 tables · auto migrations transactions, row locks OPTIONAL MongoDB stats Telegram bot TURN · Claude API video: device to device (WebRTC) SkillSwap architecture A website and an Android app both call one Express server. The website uses a session cookie and the /api routes; the app uses a bearer token and the /api/mobile routes. The server reads and writes a PostgreSQL database hosted on Supabase, pushes live updates with server-sent events and relays WebRTC signalling. It optionally uses MongoDB, a Telegram bot, TURN and an AI API. Video flows directly between devices. WEBSITE HTML, CSS, JS 20 pages session cookie ANDROID APP Compose, Room MVVM bearer token /api /api/mobile EXPRESS SERVER Node.js on Render 80 routes, input validated Live events (SSE) WebRTC signalling relay POSTGRESQL · SUPABASE 27 tables, auto migrations transactions, row locks OPTIONAL MongoDB stats, Telegram bot TURN, Claude API Video: device to device (WebRTC)
Both clients talk only to the server. Neither one holds database credentials.

How the two clients stay in sync

Both clients use the same accounts and the same sessions table. The website sends the token in an httpOnly cookie, and the app sends it as a bearer header. The app downloads a full snapshot (GET /api/mobile/sync) and writes it to Room in one transaction. Every change goes to the server first, then the app syncs again. Server-sent events tell the app when something changed.

Implementation

Website

Plain HTML, CSS and JavaScript pages served as static files by the same Express process, with no front-end framework and self-hosted fonts and icons. A strict Content-Security-Policy (default-src 'self') is possible because nothing loads from a third party.

Backend

A single Express server exposes 80 routes. 79 of them are under /api, and 34 of those are under /api/mobile for the app. Every input is validated on the server and every query is parameterised. Live updates (credits, notifications, the activity feed) use server-sent events. Video lessons use WebRTC: media goes directly between the two devices, while the server only relays the connection messages and hands out short-lived TURN credentials.

Database

PostgreSQL hosted on Supabase and reached with the standard pg driver over TLS with certificate checking. The schema has 27 tables: a base schema plus 11 SQL migrations that run automatically when the server starts. Booking is a single transaction that locks the slot row (SELECT … FOR UPDATE), so two phones can never book the same hour.

Android

Compose screens read state from a ViewModel (StateFlow), which goes through a repository to a Room cache of 7 entities. The network layer uses Android’s built-in HttpURLConnection and org.json, with no extra networking library. The session token is encrypted with AES-GCM using a key in the Android Keystore. Video calls are driven by a pure state machine (CallMachine) with a foreground service, so a call survives rotation and the app going to the background. The interface is available in English, Uzbek and Russian.

Technology

Area Used
Web front end HTML, CSS, vanilla JavaScript, server-sent events, WebRTC (browser)
Backend Node.js 20+, Express 4, bcrypt, pg, google-auth-library, Telegram Bot API
Android Kotlin, Jetpack Compose (Material 3), Navigation Compose, Room, coroutines, Stream’s WebRTC build, Android Keystore
Data and hosting PostgreSQL on Supabase, Render (free tier), optional MongoDB Atlas, Cloudflare TURN
Testing Node’s built-in test runner (80 API and rules tests), optional Playwright browser check, JUnit (66 Android unit tests, counted but not run for this page), GitHub Actions build for the app

My contribution

I designed and directed the development of SkillSwap from scratch, covering the website, server, database and Android application.

SkillSwap was registered as a team project for a university subject and for a hackathon. That arrangement was for academic and hackathon participation, not shared implementation.

I used AI-assisted coding tools throughout implementation. The repositories preserve the development history and commit attribution.

Challenges and lessons

  • One backend, two kinds of client. A browser and a phone authenticate differently. Keeping one sessions table and accepting the token as either a cookie or a bearer header avoided two parallel auth systems.
  • Correctness under concurrency. Double booking is a real risk when two people tap at once. The fix is in the database: a transaction with a row lock, not a check in the app.
  • Offline cache vs one source of truth. The app started with a local-first cache, then moved to “online-only, with Room as a read cache” so the server stays the single source of truth. The trade-off is that the app needs a connection.
  • Video behind proxies. WebRTC needs signalling and NAT traversal. Signalling runs over plain HTTPS (server-sent events plus small POSTs), so it passes through Render’s proxy. TURN credentials are requested for each room and expire after a few hours, so the long-term key never leaves the server. A “renegotiate” signal handles network changes.
  • Ordinary phones. Several commits deal with smooth scrolling, avoiding needless redraws during live sync, and animations that respect the phone’s animation-scale setting.

Current status

Each line says what was checked, and how. “Tested” means I ran the website’s own test suite on 22 Nov 2026 against a fresh PostgreSQL 16 database. “Not verified” means I have no evidence either way.

Area Status Basis
Website features: accounts, profiles, skills, matching, swaps and reviews, lessons and the time bank, check-in, chat, notifications, mobile API, video-room access rules, Google and Telegram sign-in Working, tested 80 of 80 automated tests passed
Live deployment on Render Not verified Documented as deployed on Render’s free tier with the database on Supabase. I could not reach it from my test environment, so I have not checked it
Android app Not verified Documented in the repository as working against the same backend. Not built or run for this page. 66 unit tests exist; counted, not run
Video lessons Partial Needs TURN configured on the server
AI matchmaker Partial Falls back to keyword matching without an API key
MongoDB statistics Optional Not needed for the core product
Email verification and password reset Not done Not in the code
Login rate limiting Not done Only chat and video signalling are rate-limited
Hosting Limitation The free tier sleeps when idle, so the first request can take up to a minute

All accounts and records in the demo are fictional. There are no real users.

Future direction

  1. Rate-limit login and registration, then add email verification and password reset.
  2. Replace the full-snapshot sync with incremental changes, so the app moves less data as the community grows.
  3. Move hosting off a sleeping free tier before inviting real students.
  4. Run a small pilot with real students and measure whether credits actually circulate.