RozMakc
All work
Live productPersonal project

Case study

MiniBookingOnline Appointment Booking Platform

A booking platform designed to help service businesses manage appointments through a convenient digital experience, including Telegram integration and a web application.

Role
Product architecture, full-stack development, deployment
Status
Live in production

Stack

  • Next.js
  • React
  • TypeScript
  • FastAPI
  • SQLAlchemy 2
  • PostgreSQL
  • aiogram
  • Docker
  • Caddy

The source repository is private, and no client data is shown.

MiniBooking landing page in English
Public landing page · English

Product experience

Captured from the live product

Real screens from the running application. Open an image to see it enlarged.

Click an image to enlarge

Overview

What it is

MiniBooking gives a service provider one place to publish services, set working hours and receive booking requests. Clients choose a service, a date and an available time without a long chat thread.

Providers work from a dashboard inside Telegram. New requests arrive in the bot with confirm and cancel buttons, so an appointment is handled in a couple of taps.

  • Public service storefront with a booking flow
  • Provider dashboard for services, hours, requests and settings
  • Telegram bot with /start, /my, /link and /copylink
  • Russian, English and Chinese interfaces

Architecture

How it fits together

One Next.js frontend, one FastAPI service, PostgreSQL and an aiogram bot, deployed as containers behind Caddy.

Client

Telegram Mini App

Provider

Telegram Mini App

Mini App initData is verified on the server

Next.js frontend

landing · dashboard · storefront

HTTPS REST API

FastAPI backend

REST · auth · slots · bookings

Telegram bot

aiogram 3 · long polling

Booking notifications

asyncpg

PostgreSQL 16

users · services · bookings

Docker Compose + Caddy

VPS · reverse proxy · TLS

Component map verified against the project source

My contribution

Designed and built end-to-end

A personal project: product decisions, interface, backend, data model, Telegram integration and deployment.

  • Product architecture

    Data model, booking lifecycle and the split between the bot, the Mini App and the API.

  • Frontend

    Landing page, provider dashboard and public storefront in Next.js, TypeScript and Tailwind CSS.

  • Backend & API

    FastAPI routes, Telegram authentication, slot generation and booking rules.

  • Database

    PostgreSQL schema, Alembic migrations and an exclusion constraint against double booking.

  • Telegram integration

    aiogram 3 bot, deep links to the storefront, inline confirm and cancel actions.

  • Deployment

    Docker Compose on a VPS, Caddy with automatic TLS, migrations applied on start.

Engineering

Technical decisions

The parts that needed more than a straightforward CRUD implementation.

  1. 01

    Double bookings are rejected by the database

    Pending and confirmed bookings occupy a PostgreSQL tstzrange that includes the service duration and both buffers. A GiST exclusion constraint on the provider and that range makes overlapping writes fail even when two requests arrive at the same time. The API also checks the requested start against the generated slots before inserting.

  2. 02

    Telegram identity is never trusted from the client

    The frontend sends Telegram initData as a bearer credential. The API verifies the HMAC-SHA256 signature with the bot token, rejects expired payloads and creates or updates the user only from signed data. Provider actions are checked against the owner of the record; admin access uses a separate allow-list.

  3. 03

    Slots respect time zones, buffers and real availability

    Slots are generated in the provider's time zone from working hours, service duration and the buffer before and after a booking. The step is configurable (15, 30, 60, 90, 120 or 180 minutes), and times are stored in UTC while being displayed locally.

  4. 04

    Notifications are sent after the transaction commits

    The API writes the booking first and then schedules Telegram messages with background tasks, so a failed notification cannot roll back a booking. A shared bot instance is reused across requests instead of creating a new one per message.

  5. 05

    Deployment keeps migrations and the bot under control

    The backend container waits for PostgreSQL, applies Alembic migrations with retries, then starts the API and the long-polling bot while supervising the bot process. Next.js runs as a non-root standalone server behind Caddy, which handles TLS for the app and API domains.

Scope

What it deliberately does not do

The product focuses on the booking loop instead of trying to cover every salon-management feature.

  • No online payments: clients send a request and the provider confirms it.
  • No client self-service cancellation or automatic reminders yet.
  • The source repository stays private; only public entry points are linked.

Next step

Need a booking product or a Telegram integration?

I build products end-to-end: interface, API, database, Telegram bot and deployment.

Discuss a project