Quick Start
Get Music Store up and running in less than 5 minutes. This guide will take you from clone to running application with minimal configuration.Prerequisites
Before you begin, ensure you have:- Node.js 18+ installed on your machine
- npm, yarn, or pnpm package manager
- A Supabase account (free tier works perfectly)
- Basic knowledge of React and environment variables
Getting Started
Install Dependencies
Install all required packages using your preferred package manager:This will install all dependencies including:
- React 19.2.0 and React DOM
- Supabase client
- GSAP for animations
- OGL for WebGL graphics
- Tailwind CSS for styling
- Vite for development and building
Configure Environment Variables
Create a You can find these values in your Supabase project dashboard under Settings > API.
.env file in the root directory and add your Supabase credentials:.env
Start the Development Server
Launch the Vite development server:The application will start at
http://localhost:5173 (default Vite port).Verify Installation
Once the application is running, verify everything works correctly:- Homepage loads - You should see the animated “Music Store” hero text
- Products display - Product data should load from Supabase
- Cart functionality - Try adding items to the cart
- Navigation works - Click through categories and product details
- Animations run smoothly - GSAP animations should be fluid
Your First Component
Now that Music Store is running, let’s explore how to use components. Here’s an example of importing and using theHero component:
src/pages/Home.jsx
Hero component features:
- GSAP-powered entrance animations
- Grainient animated background
- ShinyText effect for the tagline
- Responsive typography using clamp()
Using the Cart Context
Music Store uses React Context for global cart state. Here’s how to access cart functionality in your components:carrito- Current cart items arrayagregarProducto(producto)- Add item to cartquitarProducto(id)- Remove item from cartcambiarCantidad(id, delta)- Update item quantitytotal- Calculated cart totalcarritoAbierto- Cart panel visibility statesetCarritoAbierto(boolean)- Toggle cart panel
Expected Output
When everything is set up correctly, you should see:
- Hero Section: Animated title with grainient background
- Navigation: Glassmorphic navbar with cart icon
- Product Grid: Musical instruments loaded from Supabase
- Circular Gallery: WebGL-powered 3D product showcase
- Cart Panel: Slide-in cart with add/remove functionality
Available Scripts
Music Store comes with several npm scripts:package.json
Next Steps
Detailed Installation
Learn about advanced configuration options and Supabase setup
Component Library
Explore all available components and their props
Supabase Schema
Set up your database tables and relationships
Deployment
Deploy Music Store to production
If you encounter any issues during setup, check the Installation guide for detailed troubleshooting steps.
