Rasa Technologies — Headless B2B/B2C Store for Networking Hardware

Bangladesh · Networking, ISP and IT infrastructure hardware

A headless commerce platform for an IT and networking hardware importer in Dhaka, serving retail buyers, B2B partners and ISPs from one catalogue. A Laravel 13 API and Vue admin panel power a Next.js storefront with a WiFi planner, network builder, product comparison, quotations, RMA and a visual page builder.

Role: Lead developer: architecture, Laravel API, admin panel and Next.js storefront

What I built

The brief

Rasa Technologies imports and distributes networking, fibre, telecom, security and IT infrastructure hardware in Bangladesh. Its customers range from home users buying a single Wi-Fi router to ISPs and system integrators ordering optical line terminals, switches and cabling in volume. The business needed one platform that could serve both audiences: a fast, search-friendly public store for retail buyers, wholesale pricing and quotations for partners, and an admin that staff could run day to day without a developer. The brief also called for tools that help buyers choose the right hardware, not just list it, and for a content system flexible enough for marketing to build campaign and landing pages on their own.

Architecture: API-first and headless

The platform is split into two applications. The backend is a Laravel 13 application that owns the database, business rules, admin panel and REST API. The public website is a separate Next.js application with no database and no admin of its own: every page reads its data from the backend's public API, and browser calls for cart, sign-in, account and checkout are forwarded to the backend through a small proxy. All endpoints live under one versioned base address, /api/v1, divided into public endpoints for the website, apps and integrations, website endpoints that use a session cookie, and admin endpoints. Responses follow a single contract: data and optional meta on success, a code and message on failure. Older addresses still answer with a Deprecation header and a link to the new route, so the move to the versioned API did not break existing clients.

Backend: the Laravel API

The API has 186 versioned routes: 32 documented public endpoints, 38 website endpoints and 116 admin endpoints. The public contract is kept in a single endpoint registry, and a test fails if a /api/v1 route is missing from it. An Artisan command generates an OpenAPI 3.1 document and two Postman collections from the live routes, so documentation never drifts from the code. Apps sign in with short-lived access tokens and refresh tokens that rotate on every use; reusing an old refresh token ends the whole chain. Scoped API keys carry a per-minute limit, and the Super Admin can require a key for every app call. The Super Admin can also define custom read-only endpoints from public data, with chosen fields, fixed filters and ordering, which appear automatically in the OpenAPI and Postman downloads.

Admin panel

Staff work in a Vue 3 and Inertia admin panel. Its menus and permissions are defined in one place: 49 menu modules in 10 groups (Overview, Catalogue, Stock, Sales, Support, Marketing, Content, Tools, Users and Roles, System), backed by 232 permissions named by module and action, such as list, create, edit, delete, publish and export. Adding a module to that definition creates its permissions, grants them to the Super Admin and shows the menu to anyone who can list it. Roles use spatie/laravel-permission. Besides the built-in Super Admin and Manager roles, the Super Admin can create custom roles and grant or deny extra permissions to individual staff members. Every admin endpoint first requires signed-in staff, then checks the module permission. Changing a user's role, disabling an account or resetting a password signs that user out everywhere. Staff can turn on two-factor sign-in and passkeys, and every change is written to an audit log.

Frontend: the Next.js store

The storefront is built with Next.js 16, React 19, TypeScript and Tailwind CSS 4. It has 24 page routes, including home, product listing, category and brand pages, product detail, search, offers, compare, WiFi planner, network builder, solution landing pages, customer dashboard, printable invoices and CMS pages. A catch-all route handles links from the previous website. Pages are rendered on the server from API data. Reads go through one data layer with a short, configurable cache that is shared within a render, so pages stay current with stock and price changes without asking the API for the same data twice. Product, category, brand, solution and CMS pages generate their own metadata from SEO records managed in the admin, with canonical URLs and structured data on product and category pages. The sitemap is built from the API's list of SEO pages.

Signature features

Several tools go beyond a standard catalogue and help buyers choose hardware with confidence.

Security and quality practices

Security is enforced in both applications. The storefront sends a strict Content-Security-Policy, HSTS in production, nosniff, a restrictive Permissions-Policy and same-origin framing. Only the page builder canvas may be framed, and only by the admin's own origin. Uploaded and imported files are served with a sandboxed policy so they can never run script on the site's origin. Page builder designs are validated on save: unknown elements, scripts, unsafe links and raw CSS are refused. On the backend, admin access is checked in layers, rate limits apply to API reads and writes, and audit logging covers every admin change. The backend has a Pest test suite (22 test files) built on its own small store fixture, static analysis with Larastan and formatting with Pint. The storefront has 71 integration checks that run against a throwaway copy of the whole system, plus type checking and linting.

Outcome

Rasa Technologies now runs its catalogue, pricing, content and after-sales service from a single admin, while the public store stays fast and search-friendly because it is rendered from a clean, documented API. Retail buyers, B2B partners and ISPs are served by the same system, each with the prices and tools that apply to them. Marketing can publish campaign and landing pages without code, and because every capability is exposed through a versioned, documented API, the same backend is ready for a mobile app or partner integrations without rework.

Tech stack

Laravel 13, PHP 8.4, MySQL 8, Vue 3, Inertia, Next.js 16, React 19, TypeScript, Tailwind CSS 4, Three.js, Spatie Permission, Pest, OpenAPI

Rasa Technologies storefront home: glass category tabs, a 3D product hero for switches, routers and FTTx, and a product railHome page sections: Black Friday offer cards, trust badges and the Shop by category grid with product countsAll products catalogue with 275 products, 25 brands, category chips and stock, brand and price filtersCustom Network and ISP Solution Builder: describe area, rooms and users, then choose hardware and review the buildBangla WiFi Planner: flat size, floors, wall type and rooms to recommend routers and show signal coverageOffers page with Black Friday campaigns for Wi-Fi routers, FTTx deals and network mix with coupon codes

Book a call · All case studies