Portfolio · TetouanCity
TetouanCity: a city guide in four languages, built and run solo
Tétouan had no good guide online: listings were scattered, outdated and almost never in Arabic. I designed, built and deployed TetouanCity on my own. It is a directory of local businesses, bus lines, city alerts and on-duty pharmacies, in four languages, with a full right-to-left layout for Arabic and an admin panel for moderating what users submit.
- Role
- Solo: product, design, back end, front end, DevOps
- Timeline
- June 2026 to today (live, still evolving)
- Languages
- Arabic (RTL), French, English, Spanish
- Type
- City guide, directory, community platform

In numbers
- published business listings
- 1,300+
- indexable business pages in 4 languages
- 5,300+
- automated back-end tests
- 207
- pull requests reviewed and merged
- 72
The challenge
A useful city guide has to work in the languages people actually use. In Tétouan that means Arabic, French and Spanish, plus English for visitors. Arabic is right to left, so every screen needs a mirrored layout, not just translated text.
There was no clean data to start from, and I build it alone in my spare time. So the product had to be cheap to run: data imported from open sources, moderation tools instead of manual work, and automation wherever possible.
What I built
Four languages, real right-to-left
Locale-prefixed URLs for ar/fr/en/es. Arabic flips the whole layout using CSS logical properties throughout, and URLs are identical across languages, so switching language keeps you on the same page.
Directory built from open data
About 2,200 places imported from OpenStreetMap, Overture Maps and Foursquare open data, merged and deduplicated with a scoring tool. Only verified ones are published (1,300+ today). Includes "open now" and "near me" filters.
Accounts, reviews and photos
Email and Google sign-in, moderated reviews with owner replies and helpful votes, and community photos that are re-encoded to strip EXIF and GPS data before publishing.
Owner dashboard
Business owners claim their listing, edit details and hours, manage photos and reply to reviews. Claims go through admin moderation.
City bus lines
Routes and ordered stops taken from OpenStreetMap, shown on a map. "Stops near me" is computed in the browser, so the user's position never reaches the server.
City alerts, pharmacies, lost and found
Official announcements with a mandatory source, shown in a site-wide banner. Also an on-duty pharmacy roster and moderated lost-and-found posts where phone numbers are only revealed on request.

Same page in Arabic: the whole layout flips right to left 
Bus line page: stops and route from OpenStreetMap 
Mobile, Arabic
Under the hood
Admin with access tiers
A Filament 5 panel for admins and moderators. Admins grant moderators access per resource and can "view as" a moderator to check what they see. Separate queues moderate reviews, claims, photos and reports.
API for automations
A REST API using Laravel Sanctum tokens with narrow permissions, so tools like n8n can publish alerts or fill the pharmacy roster without admin access.
Technical SEO
Structured data (LocalBusiness, BreadcrumbList, ItemList), canonical and hreflang tags on every page, a sitemap index split into chunks, and IndexNow pings when content changes.
Security by default
User-written Markdown is rendered without raw HTML. Remote images are fetched with SSRF protection. Bots are kept out at sign-up with a honeypot, a timing check and Cloudflare Turnstile, and email is verified by a button click so mail scanners opening links don't confirm accounts.
Time zones that don't lie
Morocco's UTC offset changes during the year, and JavaScript runtimes ship out-of-date zone data. The server is the single source of truth and sends local wall-clock times, so pharmacy shifts and "open now" stay correct.
Tests and delivery
207 automated back-end tests and 72 pull requests, each reviewed before merging. GitHub Actions deploys to a Linux VPS (Plesk, nginx, PM2). I work with Claude Code as an assistant and review every change.
Tech stack
- Laravel
- Filament 5
- PHP
- Next.js
- TypeScript
- Tailwind CSS
- MySQL
- GitHub Actions
- NGINX
- Plesk
Contact
Need a product like this?
Tell me who is learning and what you'd like to achieve. I usually reply within 24 hours.