The ultimate energy drink brand for the apex predator. Find your fuel, explore the science, and join the pack.
Rex Velocity is a modern e-commerce web application built for an energy drink brand. It showcases a complete customer experience including product browsing, shopping cart functionality, product science information, reviews, and store locations.
- 🛒 E-Commerce Platform - Browse and purchase products with an interactive shopping cart
- 📊 Product Science - Detailed information about the product formula and benefits
- ⭐ Customer Reviews - View and explore customer feedback
- 📍 Store Locator - Find nearby store locations
- 🔍 Product Details - Individual product pages with comprehensive information
- 📱 Responsive Design - Optimized for all device sizes
- 🎨 Modern UI - Smooth animations and transitions with Motion animations
- 🍪 Cookie Consent - GDPR-compliant cookie management
- 📈 Analytics - Google Analytics integration for tracking user behavior
- ⚡ Performance - Built with Vite for fast development and production builds
- React 19 - UI framework
- TypeScript - Type-safe JavaScript
- Vite 6.2 - Fast build tool and dev server
- React Router 7 - Client-side routing
- Tailwind CSS 4.1 - Utility-first CSS framework
- Motion/Framer Motion - Smooth animations
- Lucide React - Icon library
- React GA4 - Google Analytics integration
- Vanilla Cookie Consent - Cookie management
- Express - Backend support
- Node.js 18+
- npm or yarn
-
Clone the repository
git clone https://github.com/Reddevildragg/RexVelocity.git cd RexVelocity -
Install dependencies
npm install
-
Set up environment variables
# Create a .env file in the root directory VITE_GA_MEASUREMENT_ID=your_ga_measurement_id -
Start the development server
npm run dev
The app will be available at
http://localhost:3000
# Development server on port 3000
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
# Clean build artifacts
npm run clean
# TypeScript type checking
npm run lintRexVelocity/
├── src/
│ ├── components/ # Reusable React components
│ │ ├── Navbar.tsx
│ │ ├── Footer.tsx
│ │ └── CookieConsent.tsx
│ ├── pages/ # Page components
│ │ ├── Home.tsx
│ │ ├── Shop.tsx
│ │ ├── Cart.tsx
│ │ ├── Science.tsx
│ │ ├── Reviews.tsx
│ │ ├── Locations.tsx
│ │ ├── Contact.tsx
│ │ ├── ProductDetail.tsx
│ │ └── PrivacyPolicy.tsx
│ ├── context/ # React context (Cart management)
│ ├── hooks/ # Custom React hooks
│ ├── lib/ # Utility functions
│ ├── App.tsx # Main app component with routing
│ └── main.tsx # Entry point
├── public/ # Static assets
├── index.html # HTML entry point
├── vite.config.ts # Vite configuration
├── tsconfig.json # TypeScript configuration
├── tailwind.config.ts # Tailwind CSS configuration
├── package.json # Dependencies and scripts
└── firebase.json # Firebase configuration
/- Home page/shop- Product shop/catalog/product/:id- Individual product details/cart- Shopping cart/formula- Product science and formula information/reviews- Customer reviews/locations- Store locations/contact- Contact page/privacy- Privacy policy
- Smooth Animations - Page transitions and interactive elements use Motion animations
- Custom Branding - Tailwind CSS custom theme with
--brand-*colors - Progress Bar - Visual scroll progress indicator
- Noise Overlay - Subtle texture effect for visual depth
- Responsive Grid - Adapts beautifully to all screen sizes
- GDPR-compliant cookie consent banner
- Privacy policy page
- Opt-in analytics tracking
- Cookie preference management
The project integrates Google Analytics 4 (GA4) for tracking user behavior and engagement. Users must opt-in through the cookie consent banner for analytics to be enabled.
The project is configured for Firebase deployment.
- Production Deployment: Commits to the
mainbranch are automatically built and deployed to the live channel via the.github/workflows/firebase-deploy.ymlGitHub Action. - Pull Request Previews: Pull requests automatically generate a temporary preview environment. The
.github/workflows/firebase-hosting-pull-request.ymlworkflow deploys the preview and posts the link directly in the PR chat for easy testing.
To deploy manually:
# Build the project
npm run build
# Deploy to Firebase (requires Firebase CLI)
firebase deploy- vite.config.ts - Vite bundler and dev server settings
- tsconfig.json - TypeScript compiler options
- tailwind.config.ts - Tailwind CSS theme customization
- firebase.json - Firebase hosting configuration
- metadata.json - Application metadata
Contributions are welcome! Please feel free to submit pull requests or open issues for bugs and feature requests.
Apache License 2.0 - See individual files for SPDX-License-Identifier declarations
- Live Site: Rex Velocity
- Repository: Reddevildragg/RexVelocity
Find your fuel. Explore the science. Join the pack. 🦖⚡