Back

Project Overview

Roshigo is a multi-tenant e-commerce platform where every store gets its own storefront, its own admin panel and its own domain. A single Cloudflare Worker serves the storefronts with SSR, and hosts both the store owner's product, order and campaign management and the platform operator's tenant operations in one application.

The data layer runs on Postgres and is isolated per tenant with Row Level Security; sensitive writes pass through a narrow service-role gateway delegated to database functions instead of application code. Storefronts are theme-based: each theme defines its own schema, components and panel-editable content model. Payments (Stripe, iyzico, bank transfer), shipping (Yurtiçi Kargo SOAP — labels, cancellation, tracking), email (Cloudflare Email Sending plus an inbound support inbox), media (R2 + CDN), analytics (GA4, GTM, Meta Pixel, Clarity) and the plugin layer are all part of the core.

Project Structure & Process

Research & analysis DONE
The multi-tenant structure was designed; per-store RLS policies, the read/write RPC split and service-role access rules were settled.
Storefront & theme system DONE
Theme-based SSR storefront; catalogue, cart, order, customer account, campaigns/coupons, blog and custom pages were written. Two independent themes were built.
Store admin panel DONE
Products/variants, categories, orders, customers, the media library, shipping rules and the visual theme editor were completed.
Payment integrations DONE
Payment, webhook verification and refund flows for Stripe and iyzico; subscription and billing on the platform side.
Shipping integration DONE
The Yurtiçi Kargo SOAP client was written; label creation, cancellation and tracking were wired into the panel.
Email infrastructure DONE
Order notifications, customer login codes and quota-based sending; support threads are matched from inbound email.
Security hardening DONE
CSRF protection was applied to every form, HTML sanitisation and secret encryption were added, and psql-run security regression tests were written.
Performance & SEO DONE
Media moved to a CDN worker, edge caching and asset versioning were added, and PageSpeed findings (doctype, CSP, accessibility) were closed.
Tests & quality gates DONE
A 721-test Vitest suite, type checking, lint and i18n consistency checks were combined into one command and made mandatory before every deploy.
Launch & operations DONE
Taken live; scheduled jobs (order expiry, domain provisioning, daily backup, webhook health checks) and alert emails went into service.