TrueAid is an ultra-premium, high-performance, impact-driven platform designed to connect global generosity with local humanitarian needs. We bypass traditional administrative red tape to coordinate secure, on-the-ground food networks, warm blankets, and hot beverage distributions directly to evacuation centers and high-need regions globally.
To bridge the gap between global donors and direct field recipients, ensuring absolute transparency, secure routing, and lightning-fast logistics to deliver tangible relief across borders.
- Plus Jakarta Sans Typography: Standardized visual system powered by the sleek, modern
Plus Jakarta SansGoogle Font imported directly through our core design system. - Immersive Video Hero Section: Features a seamless looping background video (
/hero-background.mp4) with rich, dark HSL gradient overlays and action buttons ("Deliver Aid Now" & "Support Our Mission"). - "What's New" Live Ticker: An auto-scrolling marquee bar showing real-time dispatch logs (meals distributed, cargo shipped, safety checks passed) that pauses smoothly on hover.
- Active Aid Catalog Carousel: A custom Radix/Shadcn-powered sliding carousel showcasing aid items with active category filters ("All", "Food", "Coffee", "Clothes"), complete with animated skeleton loaders and a gorgeous, gradient-infused offline fallback layout.
- Stories of Hope Slider: An interactive, animated testimonial section powered by
Framer Motiondisplaying direct feedback from local leaders. - Upcoming Relief Drives Calendar: Interactive calendar cards highlighting upcoming drives (Winter Shelter Warmth Drive in NY, Packing Crate Workshop in London, First Aid Field Training in Chicago) with map pins, dates, and sign-up flows.
- Guides & Safety Resource Center: A card-based downloadable PDF handbook vault (Nutrition Standards, Cold Safety, Sanitation Standards, Soup Kitchen Setup) built specifically for field operators.
- Premium Mega Footer: Bold action buttons ("Request Emergency Aid", "Apply for a Local Hub", "Donate to Active Fund") coupled with deep corporate resource mapping (Recipient Services, Volunteers, Legal, and Resources).
- Sticky Dropdown Flyout Header: Transparent, blur-backed (
backdrop-blur-md) sticky bar with animated hover states. - Aid Categories Mega Panel: A custom animated dropdown containing organized links to relief sectors, logistical tracking maps, partner desks, and 100% direct-delivery promotion banners.
- Mobile-First Tab Navigation: Dedicated bottom navigation bar providing quick tab transitions (Home, Cart, Account) optimized for on-the-go mobile devices.
- Cart Context with Micro-Animations: Shopping cart counter badges with spring-scaling micro-animations triggered whenever items are added.
- Pre-Warmed Server-Side Caching: Proactive server synchronization at startup fetches active products directly from the Stripe API, sorts them by custom metadata (
aid_item_id), and stores them in an in-memory cache, enabling< 1mscatalog load times and preventing Stripe API rate limiting. - Secure Stripe Checkout Integration: Fully integrated with Stripe Checkout, mapping cart items directly to actual, tamper-proof Stripe Price IDs instead of dynamic client-side amount declarations.
- Dynamic Metadata Parsing: Automatically reads product categories and operational descriptions directly from Stripe dashboard metadata on the fly.
- User Authentication: Secure user registration, sign-in, and account management powered directly by the Stack Auth SDK.
- Frontend: React 18, Vite 6, Tailwind CSS v4, Lucide Icons, Framer Motion.
- Backend: Node.js, Express (Stripe product syncing, in-memory caching, and checkout session generation).
- Payments & Billing: Stripe API (Metadata-mapped product catalog).
- Auth: Stack Auth SDK.
- Node.js (v18 or higher)
- A Stripe Developer Account (for API keys)
- A Stack Auth Project
-
Clone the repository:
git clone https://github.com/cloudflips32/TrueAid.git cd TrueAid -
Install dependencies:
npm install
-
Configure Environment Variables: Create a
.envfile in the root directory and configure your keys:# Stripe Keys STRIPE_SECRET_KEY=sk_test_... VITE_STRIPE_PUBLISHABLE_KEY=pk_test_... # Stack Auth Keys (Configured in src/stack/client.ts)
To boot both the React Vite frontend and the Express backend simultaneously in development mode:
npm run dev:allOn server boot, the backend automatically performs the initial synchronization with your Stripe account, maps products to the application layout, and caches them.
- Vite Frontend: http://localhost:5173
- Express API Backend: http://localhost:3001
/api: Express backend, Stripe product retrieval/sorting (sync.js), and checkout session routes./src: React frontend application./src/app/components: Global layout components, dropdown menus, and standard UI elements./src/app/pages: Core pages (Landing, Home, Cart, Checkout, Login)./src/app/contexts: Global state managers (Auth, Cart)./src/styles: Google Font imports and visual layout CSS overrides.
/public: Static public assets, including/hero-background.mp4.
Together, we can make a world of difference.
