How mohammednaami/travel-agency-app works
Project type and purpose
• This is a full-stack, server-side-rendered (SSR) React application (built with Vite and React Router) serving a Travel Agency dashboard and public pages.
• It integrates with Appwrite (a Backend-as-a-Service) for authentication, data storage (trips), and dashboard data.
• It provides both public routes (sign-in, travel listing) and an admin interface (user management, trip creation, trip details).
File structure
• Top-level infrastructure:
– Dockerfile, .dockerignore, .gitignore, tsconfig.json, vite.config.ts
– package.json / package-lock.json for dependencies and scripts
• app/ folder: the SSR application’s source
– entry.server.tsx & entry.client.tsx – bootstrap for server & client bundles
– root.tsx – common layout shell
– routes/ – file-system routing (React Router v6 conventions)
· routes/api/ – server-only functions (e.g., create-trip.ts)
· routes/admin/ – admin UI pages (dashboard, users, trips, trip-detail)
· routes/root/ – public pages (sign-in, travel page)
– appwrite/ – typed API clients (auth.ts, client.ts, dashboard.ts, trips.ts)
– constants/, lib/utils.ts – shared helpers
• components/ – presentational React components (Header, TripCard, StatsCard, etc.)
README for additional insights
• The app uses SSR, HMR (dev), asset bundling, TypeScript, TailwindCSS.
• Provides Docker-based and DIY Node deployment.