Our team recently built the website for our outdoor activity business near Marrakech (quad biking, buggy tours and camel rides). The brief sounded simple:
it must rank on Google for very local keywords;
customers must be able to book online;
we need a dashboard to confirm or refuse bookings;
everything must run on a cheap shared hosting plan (Hostinger, LiteSpeed, PHP, MySQL). No Node server and no VPS.
Here is the architecture we ended up with, the traps we fell into, and what we would do differently.
1. The stack
Front end: React 19, TanStack Router, Tailwind CSS 4, Vite
Rendering: static site generation (SSG) with a custom prerender script
Back end: a few plain PHP 8.3 files + MySQL (PDO)
Hosting: shared LiteSpeed server with a CDN in front
Browser βββΊ CDN βββΊ LiteSpeed βββ /index.html, /activites/β¦/index.html (prerendered React) βββ /api/reserver.php, /api/devis.php (bookings, quotes) βββ /admin/index.php (owner dashboard)
Enter fullscreen mode
Exit fullscreen mode
The idea: everything aβ¦