A modern React application for managing and playing music tracks. Features include search, filtering, track creation/editing, audio playback, and more. Optimized for performance and bundle size.
npm installCreate a .env file in the root directory based on the provided .env.example:
VITE_API_URL=https://your-api-url
VITE_OTHER_KEY=your-keynpm run devThe app will be available at http://localhost:3000.
npm run dev— Start the development servernpm run build— Build for productionnpm run preview— Preview the production buildANALYZE=true npm run build— Build and open bundle analyzer report
- Uses [rollup-plugin-visualizer] for bundle analysis.
- To analyze the bundle, run:
ANALYZE=true npm run build # or npm run build -- --report - After build, open
bundle-report.htmlfor a visual breakdown of the bundle.
- All modals and heavy components (e.g., audio player) are loaded dynamically using
React.lazyandSuspense. - This reduces the initial bundle size and improves load performance.
- Vite automatically removes unused code (tree shaking).
- Imports are optimized to ensure only necessary code is included in the final bundle.
- Source maps are enabled for production builds (
sourcemap: trueinvite.config.ts). - This allows for easier debugging of production issues.
- React
- TypeScript
- Vite
- Apollo Client (GraphQL)
- Zustand (state management)
- Tailwind CSS
- Playwright (testing)
- Vlad Sapozhnyk