A full-stack Next.js application to analyze YouTube channels, compare competitors, and track video performance.
- YouTube Channel Search & Overview
- Competitor Comparison
- Video Performance Metrics
- Sentiment Analysis (Bonus)
- Next.js: Framework for server-rendered React applications.
- Prisma: ORM for database management.
- SQLite: Lightweight database.
- YouTube Data API: For fetching YouTube channel and video data.
- Node.js (>= 18.x.x)
- npm or yarn
- A YouTube Data API key
-
Clone the repository:
git clone https://github.com/yourusername/youtube-competitor-analysis.git cd youtube-competitor-analysis
-
Install dependencies:
npm install
-
Set up environment variables:
Create a .env file in the root directory with the following content: DATABASE_URL="file:./dev.db" YOUTUBE_API_KEY=your_youtube_api_key
-
Set up the database:
Run the following commands to set up Prisma and SQLite:
npx prisma migrate dev --name init npx prisma generate
-
Start the development server:
npm run dev
Open http://localhost:3000 in your browser to access the application.
Search for a Channel: Use the search bar on the homepage to enter a YouTube channel name or URL. The app will display basic information and similar channels.
Track Competitors: Add channels to your tracking list and compare their metrics.
View Video Metrics: Click on a channel to view detailed video performance metrics.
Feel free to submit issues or pull requests. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License