A modern, premium, full-featured e-commerce ecosystem — built with Next.js 14, Laravel 12, Stripe, and Laravel Reverb.
→ Frontend Directory • → Backend Directory • → Backend Setup Guide
Experience seamless, real-time shopping and comprehensive administration in one premium platform.
Trevolio is an enterprise-grade, full-stack e-commerce solution engineered for speed, real-time interaction, and robust management. It features a stunning, animated user interface built on Next.js 14 and Framer Motion, paired with a high-performance REST API powered by Laravel 12.
Equipped with secure Stripe credit card processing, real-time customer-to-admin support chat (via Laravel Reverb WebSockets), custom PDF invoice generation, automatic coupon validation, and multi-tier analytics, Trevolio represents a complete software solution for modern online retail.
| Feature | Capabilities |
|---|---|
| Dynamic Catalog | Live filtering (by price, category), elastic searching, popular search terms, bestsellers, and intelligent product recommendation carousels. |
| Interactive Shop | Interactive cart drawer, multi-step checkout wizard with saved shipping addresses, and a visual wishlist tracker. |
| Real-time Live Chat | Floating chat bubble connected to admin agents using WebSockets (Laravel Echo + Reverb) with typing indicators. |
| Customer Dashboard | Manage active/past orders, edit shipping addresses, toggle default address, track order fulfillment, and edit account profiles. |
| Product Reviews | Post detailed star reviews on purchased products, rate reviews as helpful/unhelpful, and view aggregated ratings. |
| Feature | Capabilities |
|---|---|
| Analytics Suite | Recharts-powered interactive analytics visualizing sales, user registrations, top categories, and seasonal revenue patterns. |
| Store Management | Full CRUD capabilities for Products (featured toggle, inventory management), Categories (with nested subcategories), and Banners (with dynamic slide reordering). |
| Live Chat Center | Centralized chat console to assign, resolve, and reply to client inquiries in real-time. |
| System Settings | Live settings dashboard with customizable storefront configurations, branding options, and instant logo uploads. |
| Order Processing | Track order fulfillment, update payment/shipping statuses, trigger manual/automatic refunds, and view live order stats. |
| Notification Engine | Real-time system monitoring for low stock alerts, pending orders, and user registrations with instant actions. |
Frontend Architecture Next.js 14 (App Router) + TypeScript + React 18
Styling & Animations Tailwind CSS v4 + PostCSS + Framer Motion
State & Utilities Context API + Axios + Tailwind Merge + clsx
Real-time Socket Connection Laravel Echo + Pusher JS client
Charts & UI Components Recharts 2 + Radix UI + React Icons + React Hot Toast
Payments Stripe SDK & elements
Backend Framework Laravel 12.x + Sanctum API Authentication
WebSockets Server Laravel Reverb (Native high-performance WebSockets)
Asynchronous Tasks Database Queue Worker / Queue Listener
Database Options SQLite (Default Dev) / MySQL 8 (Production Ready)
Document Processing Dompdf (Automated PDF Invoice Generation)
Testing & Quality PHPUnit + Laravel Pail (Real-time CLI Log Streamer)
e-commerce/
├── backend/ # Laravel 12 API & Socket Server
│ ├── app/ # Core PHP codebase (Models, Controllers, Events)
│ ├── bootstrap/ # Application bootstrapping configs
│ ├── config/ # Global app configuration files
│ ├── database/ # SQLite/MySQL Migrations, Seeders & Factories
│ ├── public/ # Laravel public entry & storage links
│ ├── resources/ # Laravel views & language files
│ ├── routes/ # API (`api.php`) & Console Webhook definitions
│ ├── tests/ # Backend PHPUnit test suite
│ ├── artisan # Laravel CLI helper script
│ └── composer.json # Backend PHP dependencies & scripts
├── frontend/ # Next.js 14 App Client
│ ├── public/ # Static assets, logos, and favicons
│ └── src/
│ ├── app/ # App Router pages & route groups
│ │ ├── (admin)/ # Admin Panel sub-routes
│ │ ├── (auth)/ # Login, Registration pages
│ │ ├── (dashboard)/ # User profile, orders, addresses
│ │ └── (public)/ # Shop front, product catalog, cart, blog
│ ├── components/ # Reusable UI primitives, headers, footers
│ ├── context/ # Global state (Cart, Auth, Chat contexts)
│ ├── hooks/ # Custom React hooks
│ ├── lib/ # Helper utilities (axios, socket helpers)
│ └── types/ # Shared TypeScript interfaces
├── BACKEND_SETUP.md # Detailed database setup & troubleshooting guide
└── README.md # Master root setup & ecosystem guide
Make sure you have the following installed on your machine:
- Node.js (v18+) & npm
- PHP (v8.2+) & Composer
- SQLite3 or MySQL
-
Navigate to the backend directory and install dependencies:
cd backend composer install -
Setup environment configurations:
cp .env.example .env php artisan key:generate
-
Initialize your database. By default, Trevolio uses SQLite for rapid dev setup:
touch database/database.sqlite php artisan migrate --seed
(For MySQL setup, refer to the Backend Setup Guide)
-
Launch the concurrently running development servers (this script automatically boots the HTTP server, WebSockets listener, background queue worker, and log streamer):
composer dev
Your backend will be running at
http://localhost:8000.
-
Open a new terminal window, navigate to the frontend directory, and install dependencies:
cd frontend npm install -
Setup environment configurations:
cp .env.example .env.local
(Ensure
NEXT_PUBLIC_API_URLpoints tohttp://127.0.0.1:8000/api) -
Start the Next.js development server:
npm run dev
Your frontend client will be active at
http://localhost:3000.
To login as an administrator, navigate to /admin or /login on the frontend:
- Email:
admin@example.com(or admin account generated via database seeders) - Password:
password
- Email:
user@example.com - Password:
password
Run the PHPUnit suite to verify API endpoints and controller functionality:
cd backend
composer test- Backend API status:
curl http://localhost:8000/api/products - Laravel Reverb WebSockets: Ensure your browser console registers successful subscription to private channels on chat dashboard.
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature-name - Commit your changes:
git commit -m "feat: add some cool feature" - Push to branch:
git push origin feature/your-feature-name - Submit a Pull Request
This project is licensed under the MIT License.
Built with 💻 and ☕ by Ammar Shahid