Music-Platform

🎡 EDM Music Platform

A modern, feature-rich music streaming platform built with React, TypeScript, and Vite. This platform provides a stunning user experience for browsing EDM tracks, artists, videos, and events with a sleek futuristic design.

Live Demo React TypeScript Vite

✨ Features

🎼 Music Features

🎨 Artist Features

πŸ“Ή Video Features

πŸ“… Events Features

🎨 UI/UX Features

πŸ› οΈ Tech Stack

Core

UI Framework & Components

Routing & State Management

Additional Libraries

Development Tools

πŸš€ Getting Started

Prerequisites

Installation

  1. Clone the repository
    git clone https://github.com/Thilinadilshan22/Music-Platform.git
    cd Music-Platform
    
  2. Navigate to the frontend directory
    cd Front-end
    
  3. Install dependencies
    npm install
    
  4. Start the development server
    npm run dev
    
  5. Open your browser
    • Navigate to http://localhost:5173
    • The app will automatically reload when you make changes

πŸ“¦ Available Scripts

In the Front-end directory, you can run:

πŸ“ Project Structure

EDM Site/
β”œβ”€β”€ Front-end/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ assets/          # Images, album art, and static assets
β”‚   β”‚   β”œβ”€β”€ components/      # Reusable UI components
β”‚   β”‚   β”‚   β”œβ”€β”€ artists/     # Artist-specific components
β”‚   β”‚   β”‚   β”œβ”€β”€ events/      # Event components
β”‚   β”‚   β”‚   β”œβ”€β”€ music/       # Music-related components
β”‚   β”‚   β”‚   β”œβ”€β”€ player/      # Music player components
β”‚   β”‚   β”‚   β”œβ”€β”€ shared/      # Shared components (Nav, Footer, etc.)
β”‚   β”‚   β”‚   └── ui/          # Radix UI component wrappers
β”‚   β”‚   β”œβ”€β”€ contexts/        # React Context providers
β”‚   β”‚   β”‚   β”œβ”€β”€ MusicContext.tsx
β”‚   β”‚   β”‚   └── ThemeContext.tsx
β”‚   β”‚   β”œβ”€β”€ data/            # Mock data and constants
β”‚   β”‚   β”œβ”€β”€ features/        # Feature-based modules
β”‚   β”‚   β”‚   β”œβ”€β”€ artists/     # Artists page
β”‚   β”‚   β”‚   β”œβ”€β”€ auth/        # Login/Signup pages
β”‚   β”‚   β”‚   β”œβ”€β”€ events/      # Events page
β”‚   β”‚   β”‚   β”œβ”€β”€ home/        # Home page
β”‚   β”‚   β”‚   β”œβ”€β”€ legal/       # Legal pages
β”‚   β”‚   β”‚   β”œβ”€β”€ music/       # Music page
β”‚   β”‚   β”‚   └── videos/      # Videos page
β”‚   β”‚   β”œβ”€β”€ styles/          # Global styles and Tailwind config
β”‚   β”‚   β”œβ”€β”€ App.tsx          # Main app component with routing
β”‚   β”‚   └── main.tsx         # App entry point
β”‚   β”œβ”€β”€ public/              # Public assets
β”‚   β”œβ”€β”€ build/               # Production build output
β”‚   β”œβ”€β”€ index.html           # HTML template
β”‚   β”œβ”€β”€ package.json         # Dependencies and scripts
β”‚   β”œβ”€β”€ tailwind.config.js   # Tailwind configuration
β”‚   β”œβ”€β”€ vite.config.ts       # Vite configuration
β”‚   └── tsconfig.json        # TypeScript configuration
β”œβ”€β”€ Back-end/                # Backend directory (placeholder)
β”œβ”€β”€ .github/
β”‚   └── workflows/
β”‚       └── deploy.yml       # GitHub Actions deployment workflow
β”œβ”€β”€ DEPLOYMENT.md            # Detailed deployment guide
└── README.md                # This file

🌐 Deployment

This project is configured for deployment to GitHub Pages with automated CI/CD.

Live Site

https://thilinadilshan22.github.io/Music-Platform/

Automated Deployment

Every push to the main branch automatically triggers a GitHub Actions workflow that:

  1. Builds the project
  2. Deploys to GitHub Pages
  3. Makes the site live

Manual Deployment

cd Front-end
npm run deploy

For detailed deployment instructions, see DEPLOYMENT.md.

🎨 Design Philosophy

πŸ”§ Configuration

Base Path

The app is configured to run at /Music-Platform/ base path for GitHub Pages deployment. This is set in vite.config.ts:

base: '/Music-Platform/',

For local development or different deployment targets, adjust this value accordingly.

Theme Customization

The theme configuration can be found in tailwind.config.js with custom colors, animations, and gradients.

πŸ› Troubleshooting

Assets Not Loading

Routing Issues

Build Errors

πŸ“ Future Enhancements

πŸ“„ License

ISC License

πŸ‘€ Author

Thilina Dilshan

πŸ™ Acknowledgments


⭐ If you like this project, please give it a star on GitHub!