All notes

BezorgFlex: Building a Flexwork Platform for the Hospitality Industry — From Idea to Production

· 5 min

BezorgFlex: Building a Flexwork Platform for the Hospitality Industry — From Idea to Production

The problem The hospitality industry has struggled with a tight labor market for years. During peak moments — a sunny weekend, a festival, a busy Friday night — many restaurants' regular delivery teams simply fall short. The common fix is joining a major delivery platform like Thuisbezorgd, Uber Eats, or Deliveroo, but that comes with commissions of up to 15–30% per order and little control over who actually shows up at the door. At the same time, there's a large pool of students and young people eager to earn some flexible extra income alongside school, but access to reliable, well-arranged short-term work is often fragmented and informal — arranged through word of mouth, without clear agreements on pay or conditions. BezorgFlex is my answer to that problem: a two-sided marketplace platform that functions as a kind of digital staffing agency between hospitality venues and young flexworkers.

The concept

The platform distinguishes two target groups on the supply side: Delivery riders (ages 15–20) — deliver food by bike or e-bike, during the times restaurants themselves have too little capacity. Light kitchen helpers (ages 13–14) — carry out light, non-industrial assistance tasks such as manual dishwashing and kitchen cleaning, within the legal limits that apply to this age group. Restaurants post shifts: date, tasks, number of people needed, and the offered hourly wage. Job seekers indicate their availability and get matched — automatically, based on availability, rating score, and distance, with the option for manual selection. After each shift, the worker receives a rating that factors into future matching. The platform earns through service fees charged to restaurants on top of the hourly wage — explicitly not to the workers themselves. What makes this project particularly interesting is that the technology is arguably not the hardest part. Because part of the target audience is underage, every design decision had to account for child labor laws, working-hours legislation, GDPR rules around minors' data, and the legal framework for staffing agencies (Dutch labor laws such as Waadi and the WTTA licensing requirement). This means the application contains hard-coded guardrails: a 13-year-old user simply never sees a delivery shift, and working hours are automatically checked against the legal limits per age category. Trust — toward both the young worker and their parent — is therefore just as much a product requirement as it is a marketing message. The tech stack For the build, I chose a modern, type-safe stack: Next.js 16 (App Router) with TypeScript as the foundation — powering both the public pages and the logged-in dashboard for job seekers and restaurants. Tailwind CSS for styling.

Supabase (PostgreSQL) as the backend for database and authentication — ideal for a project where I wanted to iterate quickly without building a full backend from scratch. Turbopack as the build tool, bundled by default with the latest Next.js version. A service worker and web manifest, making the platform installable as a Progressive Web App — important for an audience that's almost exclusively on mobile.

Deploying on my own infrastructure Instead of opting for a platform-as-a-service like Vercel, I wanted to keep full control over hosting, so I chose a self-managed VPS running Plesk as the control panel. That turned out to be quite the learning experience. The plan was simple: push code to a Git repository and let Plesk handle deployment to production. In practice, a fair amount stood between that plan and a working site: Connecting Node.js to the domain. Plesk's Node.js support first had to be enabled per domain — not entirely obvious to find, since the option wasn't where I initially expected it. It eventually turned out this had to be done through the domain-specific Node.js manager rather than the general overview.

A custom server for Next.js. Plesk's Node.js integration expects a startup file (traditionally app.js), but Next.js doesn't ship with one by default. The fix: a small, custom server.js that wires the Next.js request handler into a Node http server, listening on whatever port Plesk (via Passenger) assigns. Permission issues after a failed install. A first npm install attempt failed with an EACCES error — files owned by the wrong user, likely left over from an earlier automated action. That required manual intervention over SSH: removing the broken node_modules and .npm directories and restoring ownership with chown.

A subtle side effect of fixing permissions. While generically resetting file permissions (644 for files), the executable scripts inside node_modules/.bin — including the next binary itself — lost their execute permission. A small detail with a big impact: the build broke. Fixed by specifically setting the .bin directory back to 755. The sneaky duplicate-lockfile problem. The most stubborn bug of the whole process: Next.js detected two package-lock.json files (one in the correct project directory, one accidentally one level up, left over from an earlier misconfiguration) and, as a result, picked the wrong directory as its workspace root. The consequence: the production build got written to the wrong location, and the server couldn't find it — resulting in a cryptic "Could not find a production build in the '.next' directory" error, and eventually a Passenger timeout because the app couldn't start at all. Only after removing the stray lockfile and rebuilding did everything fall into place. A Node version conflict. Even with the correct path configured in Plesk, a system-wide, older Node.js version (18.x) turned out to take precedence on the PATH over the intended version (26.x) when running commands manually over SSH — an easy thing to miss, only surfaced by Next.js's own error message enforcing a minimum Node version. Each of these issues was small on its own, but together they were a good example of how deploying on your own infrastructure — as opposed to a ready-made platform — forces you to actually understand what's happening under the hood: from file permissions and process management to how a framework like Next.js detects its own workspace root.

Result

BezorgFlex is now live at bezorgflex.nl, fully self-hosted, with a Git-based workflow that pushes new versions to production in just a few commands. At this stage it's a prototype/MVP — meant to validate the concept with local restaurants before taking further steps toward the legal structure (a WTTA license, joining a staffing-industry collective labor agreement, a payroll partner) required to turn it into a fully-fledged staffing agency. The project is a good illustration that a strong idea alone isn't enough: the combination of product thinking (how do you build trust with a sensitive target audience), legal diligence (child labor law, GDPR, employment law), and technical execution (from framework choices to production deployment) is what turns a concept into a working platform.

All notes

Terminal

Welcome to amirs.life. Type help for all commands.