A professional college football analytics platform built with Next.js, featuring advanced statistics, AI predictions, and betting insights exclusively for College Football (CFB).
- College Football Only: Exclusive focus on NCAA Football
- Team Statistics: Advanced analytics for college football teams
- Player Statistics: Individual performance metrics and trends
- Daily Matchups: Game insights with AI predictions
- Betting Data: Line movements, public betting percentages, handle data
- Predictions & Trends: AI-powered game predictions and market analysis
- Game Schedules: Complete college football schedules and scores
- Member-only Access: Paywall protection for premium content
- Dark/Light Mode: Theme switching
- Responsive Design: Mobile-first approach
- Real-time Data: Live updates via API integrations
- WordPress CMS: Headless WordPress for content management
- Automated Emails: Daily sports reports via email
- Social Media: Auto-posting to Instagram/Facebook
- Content Scheduling: Automated content distribution
- Frontend: Next.js 14, React 18, TypeScript
- Styling: Tailwind CSS, Headless UI
- Data Fetching: React Query, Axios
- API: TheRundown.io (College Football data only)
- CMS: WordPress (headless) with WPGraphQL
- Email: Nodemailer
- Authentication: NextAuth.js
- Deployment: Vercel-ready
├── app/ # Next.js App Router
│ ├── api/ # API routes
│ ├── teams/ # Team statistics pages
│ ├── players/ # Player statistics pages
│ ├── login/ # Authentication pages
│ └── ...
├── components/ # React components
│ ├── auth/ # Authentication components
│ ├── dashboard/ # Dashboard components
│ ├── teams/ # Team-related components
│ ├── players/ # Player-related components
│ ├── layout/ # Layout components
│ └── ui/ # Reusable UI components
├── lib/ # Utility functions
│ ├── api/ # API clients
│ ├── wordpress/ # WordPress integration
│ └── automation/ # Email/social automation
├── types/ # TypeScript type definitions
└── hooks/ # Custom React hooks
- Node.js 18+
- npm or yarn
- WAMP/XAMPP server (for WordPress)
- WordPress installation
Create a .env.local file in the root directory:
# WordPress GraphQL API
WORDPRESS_API_URL=http://localhost/statspro/graphql
# Sports Data API
THERUNDOWN_API_KEY=your_therundown_api_key_here
# NextAuth Configuration
NEXTAUTH_SECRET=your-super-secret-jwt-secret-here
NEXTAUTH_URL=http://localhost:3000
# Email Configuration
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your_email@gmail.com
SMTP_PASS=your_app_passwordnpm install
# or
yarn installYour WordPress is already configured at http://localhost/statspro/wp-admin with:
- Username: stefano
- Password: sfg6678$$
The following plugins are installed:
- Advanced Custom Fields
- Custom Post Type UI
- Post Types Order
- Vercel Deploy Hooks
- WPGraphQL
- WPGraphQL for Advanced Custom Fields
- Sign up at TheRundown.io or get access via RapidAPI
- Get your API key from the dashboard
- Add it to your
.env.localfile - Ensure you have access to College Football (americanfootball_ncaaf) endpoints
npm run dev
# or
yarn devOpen http://localhost:3000 in your browser.
Create these custom post types in WordPress:
-
Email Templates
- Fields: Subject, Recipients, Send Daily, Sport Filters
- Used for automated email campaigns
-
Social Posts
- Fields: Platform, Content, Scheduled Date, Image URL, Status
- Used for social media automation
The app connects to WordPress via GraphQL at:
http://localhost/statspro/graphql
- Email Management: Create email templates in WordPress admin
- Social Media: Schedule posts through WordPress interface
- Content Distribution: Automated via the platform's API routes
GET /api/games?date={date}- Get college football gamesGET /api/teams- Get college football teamsGET /api/teams/stats- Get team statisticsGET /api/players- Get playersGET /api/players/stats- Get player statisticsGET /api/predictions?date={date}- Get game predictionsGET /api/betting/data?eventId={eventId}- Get betting data
POST /api/automation/email- Send daily emailsPOST /api/automation/social- Publish social posts
- Sortable and filterable by multiple metrics
- Performance-based color coding
- Expandable rows for detailed stats
- Multi-sport support with sport-specific metrics
- Position and age filtering
- Performance tracking over time
- Advanced statistical breakdowns
- Player detail views
- AI-powered game predictions
- Betting line analysis
- Weather and venue data
- Key player information
- Daily email reports
- Social media posting
- WordPress content management
- Scheduled content distribution
- Add new stat fields to type definitions in
types/index.ts - Update API mappers in
lib/api/sports-api.ts - Add new columns to table components
- Enhance prediction algorithms
- Tailwind CSS configuration in
tailwind.config.js - Custom components in
app/globals.css - Dark mode support via
next-themes
- Subscription-based access control
- Role-based permissions
- Session management
- Protected routes
- Connect your GitHub repository to Vercel
- Add environment variables in Vercel dashboard
- Deploy automatically on push to main branch
- Host WordPress on a server accessible to your Next.js app
- Ensure GraphQL endpoint is publicly accessible
- Configure CORS if needed
For questions about setup or customization, refer to:
- Next.js documentation
- WordPress GraphQL documentation
- TheRundown.io API documentation
This project is proprietary software for StatsPro.