Skip to content
Sina KalantariAll Projects

Scheduled delivery store

Chegovara

An online store that delivers drinking water, tea, tissues and other everyday supplies on a schedule the customer sets once. I wrote most of the API and back office behind it.

Role
Full Stack Developer, part-time
Period
2018 — 2025
Market
Iran
Model
One-off & recurring orders
Chegovara product page for a pack of bottled water, with a choice between buying once and buying on a repeat cycle
Unreleased redesignEvery product can be bought once or put on a repeat cycle.

A store where the second order places itself

Chegovara sells bottled water, tea, tissues and other supplies that homes and offices run out of on a predictable rhythm. A customer picks a product once, chooses how often it should come back, and the store plans every delivery after that.

That one choice shapes the whole backend. Orders are not only something customers place; the system has to predict them, price them, get them confirmed and collect payment, on dates that depend on the delivery area and the holiday calendar. My part was the Laravel API the storefront talks to and the back office the operations team runs deliveries from.

Pick a rhythm, get a schedule

Each recurring item carries its own cycle. A daily job moves every item to its next delivery date, and when that date lands on a holiday the delivery moves a full cycle ahead.

Repeat cycle
  • delivery
  • holiday
  • numbers are weeks after the first order
A simplified model of the scheduling rule over twelve weeks, with one holiday in week 4.
Unreleased redesign

How ordering works for a customer

The screens are frames from the design file of the storefront's redesign, which has not been released yet. My work is the API and back office behind them.

  1. Quick-add dialog with two options, only once or recurring purchase, and a repeat cycle set to every month

    Once, or on repeat

    Every product can be bought a single time or added with a repeat cycle, straight from the listing. The API stores each recurring item as its own subscription tied to a delivery address, so one customer can run different schedules for the office and for home.

  2. Cart with four lines, each with its own repeat cycle, next to a summary showing discount, weight, shipping and a free-shipping progress bar

    A cart that knows the rules

    The cart is priced by the API: volume discounts that step down as the quantity grows, discount codes, total weight, and a shipping fee that drops to zero past a threshold. Each line keeps its own cycle, so a single checkout can mix one-off and recurring items.

  3. Account dashboard showing the next scheduled order, its payment status and the deadline for editing it

    The next order, before it exists

    Upcoming deliveries are not stored rows. The API projects them from the customer's active subscriptions, the area's dispatch days and the holiday calendar, and shows them as orders the customer can confirm, edit or skip. Editing closes when the warehouse does, the working day before delivery.

  4. Recurring purchases page listing four items with their quantity, repeat cycle and active or inactive status
    Order details on a phone, with the items of a scheduled order

    Standing orders, under the customer's control

    Customers manage their recurring items in one place: change the quantity or the cycle, pause an item and bring it back later. The same account area holds invoices, addresses, wallet credit and order history, on desktop and on a phone.

That's the project. The rest is how it's built.

From here on, this page is written for technical readers: what I built on the backend, and the stack it runs on. If you came to see the work itself, you've seen all of it.

Scroll to contact

What I worked on

Backend stack

  • Laravel 8
  • PHP 8.1
  • MySQL
  • Redis
  • Passport
  • Queues
  • Docker
  • Sentry

Subscriptions and scheduling

The subscription model, the daily job that advances each item to its next delivery date, and the rules for dispatch days per area and public holidays.

Orders and invoices

Order creation from projected deliveries, delivery-date changes, item edits, discount codes and printable invoices.

Payments and wallet

Online payment through a bank gateway with callback verification, a wallet customers can top up and pay from, and records for card-terminal and cash-desk payments.

Accounting sync

Customers, products, invoices and payment receipts are pushed to the company's accounting software from a dedicated queue, with a log in the back office and a webhook for changes made on the accounting side.

Back office

The admin panel the operations team works in: an orders dashboard by delivery date, products and bundles with Excel import, areas, dispatchers and holidays, role-based access and Excel reports.

Messaging and monitoring

SMS for login codes and order events, group messages from the back office, an alert when SMS credit runs low, and error tracking in production.

Let's Work Together

Have a project in mind?

I'm always open to discussing new ideas, collaborations and exciting opportunities.