Skip to content

muhammedatef98/fixate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

202 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Fixate

ู…ู†ุตุฉ ุตูŠุงู†ุฉ ุงู„ุฃุฌู‡ุฒุฉ ุงู„ุฅู„ูƒุชุฑูˆู†ูŠุฉ ููŠ ุงู„ู…ู…ู„ูƒุฉ ุงู„ุนุฑุจูŠุฉ ุงู„ุณุนูˆุฏูŠุฉ Mobile device repair platform for Saudi Arabia

Live License React TypeScript Node Vite PostgreSQL

ุงู„ุนุฑุจูŠุฉ ยท English ยท Live Demo


๐Ÿ“ฑ ู†ุธุฑุฉ ุนุงู…ุฉ

Fixate ู…ู†ุตุฉ ุฐูƒูŠุฉ ู„ุตูŠุงู†ุฉ ุงู„ุฌูˆุงู„ุงุช ูˆุงู„ู„ุงุจุชูˆุจุงุช ูˆุงู„ุชุงุจู„ุช ููŠ ุงู„ุณุนูˆุฏูŠุฉ. ุงู„ูู†ูŠ ูŠุตู„ ุฅู„ูŠูƒ ุฃูŠู†ู…ุง ูƒู†ุช ุจุนุฑุจุฉ ู…ุฌู‡ุฒุฉ ุจุงู„ูƒุงู…ู„ุŒ ุฃูˆ ู†ุณุชู„ู… ุฌู‡ุงุฒูƒ ูˆู†ูˆุตู„ู‡ ุจุนุฏ ุงู„ุฅุตู„ุงุญ. ุฎุฏู…ุฉ ุณุฑูŠุนุฉุŒ ุดูุงูุฉุŒ ูˆู…ุถู…ูˆู†ุฉ ูฆ ุฃุดู‡ุฑ.

ู‡ุฐุง ุงู„ู€ repo ู‡ูˆ ุงู„ู…ูˆู‚ุน ุงู„ุชุณูˆูŠู‚ูŠ + ุงู„ู€ backend API. ุชุทุจูŠู‚ุงุช ุงู„ู€ iOS ูˆ Android ู„ุณู‡ ู‚ูŠุฏ ุงู„ู†ุดุฑ.


โœจ ุงู„ู…ู…ูŠุฒุงุช | Features

ุงู„ู…ูŠุฒุฉ Feature
๐Ÿ  ุตูŠุงู†ุฉ ููŠ ู…ูˆู‚ุนูƒ At-home repair service
โšก ุญุฌุฒ ููŠ ุฏู‚ุงุฆู‚ Booking in minutes
๐Ÿ“ ุชุชุจุน ุงู„ูู†ูŠ ู…ุจุงุดุฑุฉ Live technician tracking
๐Ÿ›ก๏ธ ุถู…ุงู† ูฆ ุดู‡ูˆุฑ 6-month warranty
๐ŸŽ ุจุฑู†ุงู…ุฌ ูˆู„ุงุก ุจุงู„ู†ู‚ุงุท Points-based loyalty program
๐Ÿ’ฌ ุดุงุช ุจูˆุช ุฐูƒูŠ AI-powered chatbot
๐Ÿ“ฒ ูŠุนู…ู„ ูƒุชุทุจูŠู‚ PWA Installable PWA
๐ŸŒ™ ูˆุถุน ู„ูŠู„ูŠ + RTL Dark mode + RTL support
๐ŸŒ ุนุฑุจูŠ / ุฅู†ุฌู„ูŠุฒูŠ Arabic / English

๐Ÿ› ๏ธ ุงู„ุชู‚ู†ูŠุงุช | Tech Stack

Frontend

  • React 19 ยท TypeScript ยท Vite 7
  • TailwindCSS 4 ยท shadcn/ui ยท Framer Motion
  • Wouter (routing) ยท TanStack Query

Backend

  • Node.js 22 ยท Express 4
  • tRPC 11 (type-safe API)
  • PostgreSQL (Neon) ยท Drizzle ORM
  • Helmet ยท express-rate-limit ยท CORS

DevOps

  • Render (hosting) ยท GitHub Actions (CI)
  • pnpm ยท esbuild

๐Ÿš€ ุงู„ุชุดุบูŠู„ ุงู„ู…ุญู„ูŠ | Running Locally

# 1. Clone & install
git clone https://github.com/muhammedatef98/fixate.git
cd fixate
pnpm install

# 2. Add .env at repo root
echo "DATABASE_URL=postgresql://..." > .env
echo "NODE_ENV=development" >> .env

# 3. Start dev server (Vite + Express on port 3000)
pnpm dev
Script Purpose
pnpm dev Dev server with HMR
pnpm build Production build โ†’ dist/
pnpm start Run production build
pnpm check TypeScript type check
pnpm test Run Vitest tests
pnpm db:push Generate & run DB migrations

๐Ÿ“‚ ู‡ูŠูƒู„ุฉ ุงู„ู…ุดุฑูˆุน | Project Structure

fixate/
โ”œโ”€โ”€ client/                  # React frontend
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ pages/           # Route components (Home, FAQ, Services, ...)
โ”‚   โ”‚   โ”œโ”€โ”€ components/      # Shared UI (Header, Footer, SEO, ...)
โ”‚   โ”‚   โ”œโ”€โ”€ contexts/        # Language (AR/EN) & Theme providers
โ”‚   โ”‚   โ””โ”€โ”€ lib/             # tRPC client, analytics, utilities
โ”‚   โ””โ”€โ”€ public/              # Static assets, sitemap, sw.js, icons
โ”œโ”€โ”€ server/
โ”‚   โ”œโ”€โ”€ _core/               # Express entry + Vite middleware
โ”‚   โ”œโ”€โ”€ db/                  # Drizzle schema & queries
โ”‚   โ”œโ”€โ”€ routers/             # tRPC routers
โ”‚   โ””โ”€โ”€ routes/              # REST endpoints
โ”œโ”€โ”€ shared/                  # Types shared between client & server
โ”œโ”€โ”€ render.yaml              # Render deployment config
โ””โ”€โ”€ vite.config.ts

๐Ÿ“ก API

Method Endpoint Description
GET /api/ping Keep-alive (no DB)
GET /api/health DB connectivity check
POST /api/contact Contact form submission
GET /api/devices/types List device types
GET /api/devices/models/:id Models by device type
GET /api/services/types List service types
GET /api/services/price Price lookup
POST /api/auth/signup User signup (rate-limited)
POST /api/auth/login User login (rate-limited)
* /api/trpc/* Type-safe tRPC API

๐Ÿšข ุงู„ู†ุดุฑ | Deployment

ุงู„ู…ุดุฑูˆุน ู…ู†ุดูˆุฑ ุนู„ู‰ Render (free tier) ู…ู† ุฎู„ุงู„ render.yaml:

buildCommand: npm install -g pnpm@10 && pnpm install --frozen-lockfile && pnpm build
startCommand: node dist/index.js

Tip: ุงู„ู€ free tier ุจูŠุฏุฎู„ sleep ุจุนุฏ ูกูฅ ุฏู‚ูŠู‚ุฉ. ุงุณุชุฎุฏู… cron-job.org ู„ู€ ping ุนู„ู‰ /api/ping ูƒู„ ูกูค ุฏู‚ูŠู‚ุฉ ุนุดุงู† ูŠูุถู„ ุตุงุญูŠ.

ุชูุงุตูŠู„ ุฃูƒุชุฑ ููŠ DEPLOYMENT_GUIDE.md.


๐Ÿ”’ ุงู„ุฃู…ุงู† | Security

  • Helmet โ€” CSP, HSTS, X-Frame-Options, ูˆ security headers ุชุงู†ูŠุฉ
  • CORS โ€” ู…ู‚ุตูˆุฑ ุนู„ู‰ origins ู…ุนุชู…ุฏุฉ (/api/* ูู‚ุท)
  • Rate limiting โ€” ูขู  request / ูกูฅ ุฏู‚ูŠู‚ุฉ ุนู„ู‰ endpoints ุงู„ู€ auth
  • PDPL compliant โ€” cookie consent ุจุซู„ุงุซ ู…ุณุชูˆูŠุงุช (necessary / analytics / marketing)

๐ŸŒ SEO

  • Static OG/Twitter metadata + dynamic JSON-LD (LocalBusiness, FAQPage, Service)
  • Sitemap.xml + robots.txt
  • ุตูุญุงุช SEO landing ู„ู€ ูฆ ู…ุฏู† (ุงู„ุฑูŠุงุถุŒ ุฌุฏุฉุŒ ุงู„ุฏู…ุงู…ุŒ ุงู„ุฎุจุฑุŒ ู…ูƒุฉุŒ ุงู„ู…ุฏูŠู†ุฉ) ูˆ ูฆ ุฎุฏู…ุงุช
  • Lighthouse Performance >90 ุนู„ู‰ mobile

๐Ÿ”ง ู…ุชุบูŠุฑุงุช ุงู„ุจูŠุฆุฉ | Environment Variables

Variable Required Purpose
DATABASE_URL โœ… PostgreSQL connection (Neon)
NODE_ENV โœ… production on Render
VITE_APP_STORE_URL โฌœ iOS App Store link
VITE_PLAY_STORE_URL โฌœ Google Play link
VITE_GA4_MEASUREMENT_ID โฌœ Google Analytics 4
VITE_CLARITY_PROJECT_ID โฌœ Microsoft Clarity
OPENAI_API_KEY โฌœ AI chatbot

๐Ÿ‡ฌ๐Ÿ‡ง Overview

Fixate is a smart mobile device repair platform for Saudi Arabia. Our certified technicians come to your location with fully-equipped vans, or we collect & deliver for advanced repairs. Fast, transparent, and backed by a 6-month warranty.

This repository hosts the marketing website + backend API. The native iOS / Android apps are not yet published.

Service options:

  • ๐Ÿ”ง Mobile Technician โ€” On-site repair for screens, batteries, charging ports, and audio.
  • ๐Ÿšš Pickup & Delivery โ€” For complex repairs (motherboard, processor, precision work) handled at our partner workshops.

Service area: Riyadh, Jeddah, Dammam, Khobar, Mecca, Medina โ€” and expanding.


๐Ÿ“ฌ ุงู„ุชูˆุงุตู„ | Contact

Website WhatsApp Instagram Email


๐Ÿ“„ License

Released under the MIT License.

Built with โค๏ธ by Mohammed Atef

โญ Star this repo if you found it useful!

About

๐Ÿ› ๏ธ Fixate โ€” ู…ู†ุตุฉ ุตูŠุงู†ุฉ ุงู„ุฌูˆุงู„ุงุช ูˆุงู„ุฃุฌู‡ุฒุฉ ุงู„ุฅู„ูƒุชุฑูˆู†ูŠุฉ ููŠ ุงู„ุณุนูˆุฏูŠุฉ. Mobile device repair platform for Saudi Arabia (React 19 ยท TypeScript ยท tRPC ยท PostgreSQL ยท Express)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors