Skip to content

A comprehensive, AI-first personal web platform for John Oluleke-Oke (J StaR Films) featuring dynamic content management, admin dashboard, and creator tools.

Notifications You must be signed in to change notification settings

JStaRFilms/jstar-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

J StaR Films Personal Platform

A comprehensive, AI-first personal web platform for John Oluleke-Oke (J StaR Films) featuring dynamic content management, admin dashboard, and creator tools.

🎯 Platform Vision & Mission

To create a unified, modular, and scalable personal web platform that serves as a "Creative Operating System" - integrating a public-facing portfolio website, a digital product storefront, a powerful AI assistant (JohnGPT), and a comprehensive suite of creator tools for audience growth, client acquisition, and monetization.

The platform combines John's diverse expertise as a speedcubing champion, professional filmmaker, and AI developer to deliver AI-first architecture that runs locally for privacy, performantly scales to cloud infrastructure, and provides tiered access experiences from basic portfolio viewing to advanced creator automation tools.

🌟 John Oluleke-Oke: Creator & Innovator

  • 🎬 Filmmaker & Educator: YouTube channel with 280+ videos, 176K+ views, 5K+ likes, teaching DaVinci Resolve, color grading, and cinematography
  • πŸ† Speedcubing Champion: Nigerian champion with multiple gold medals in 2x2x2 and Megaminx events, WCA competitor since 2022
  • πŸ€– AI Developer: Full-stack engineer specializing in React/Next.js, Python AI, Google Gemini API, and local AI model integration
  • πŸŽ“ TEDx Speaker: Keynote speaker on "What if reality is editable?" at TEDxElizadeUniversity
  • πŸ“š Computer Science Student: BSc Computer Science at Elizade University

πŸ—οΈ User Access Tiers & Experiences

Tier User Persona Access Level Key Features
πŸ‘₯ Guest Website Visitor Public-only Portfolio, blog, services, contact forms, limited JohnGPT demo
πŸ€– Tier 1 JohnGPT User Basic Paid Full JohnGPT assistant with conversation history, AI persona switching
🎯 Tier 2 Creator Pro Professional CGE tools (YouTube Virality OS, Client Magnet, Scripting Studio)
⭐ Tier 3 Elite Creator Premium All tools, advanced templates, private course access, priority support
⚑ Admin Platform Owner Full Control Complete CMS, user management, AI configuration, system monitoring

🎯 What's Implemented

βœ… Phase 1: Admin System & CMS (COMPLETE)

  • Admin Dashboard (/admin) - Complete system monitoring and management
  • Hero Slides Management (/admin/cms/hero-slides) - Full CRUD for homepage carousel with dynamic slides
  • System Diagnostics (/admin/system-diagnostic) - Performance monitoring and real-time metrics
  • Contact Form Management - Complete contact submissions with filtering/pagination/analytics
  • Newsletter Management - Subscriber management with admin tools
  • Database Integration - SQLite with Prisma ORM and advanced caching system

🚧 Phase 2: Public Website (IN PROGRESS)

  • Basic page structure implemented with About, Portfolio, Services, Blog, Contact, Store
  • Hero section with dynamic slides powered by admin CMS
  • Theme toggle functionality with dark/light/auto modes
  • Mobile-responsive design with touch-friendly interactions
  • Enhanced UI/UX with smooth scrolling, focus states, and accessibility improvements

πŸ“‹ Phase 3: JohnGPT & Creator Tools (PLANNED)

  • Multi-engine AI assistant supporting Ollama, LM Studio, Gemini, OpenAI, and cloud APIs
  • Conversation history and prompt library management
  • Split-view canvas mode for advanced ideation
  • Agent Slot Machine for A/B testing multiple AI models
  • Creator Growth Engine: YouTube Virality OS, Client Magnet, and Course Builder

πŸ“š Documentation & Resources

ALL PROJECT INFORMATION, GUIDELINES, MOCKUPS, AND DOCUMENTATION ARE AVAILABLE IN THE docs/ FOLDER. This is your complete reference library for understanding, developing, and contributing to the platform.

πŸ”— Key Documentation Resources

Project Vision & Architecture

  • [docs/J StaR Personal Platform PRD.md](docs/J StaR Personal Platform PRD.md) - Complete 300+ page product requirements document
  • docs/Endpoints.md - All 25+ page routes and navigation with feature breakdowns
  • docs/AdminPageRoutes.md - Comprehensive admin API documentation with examples
  • docs/coding_guidelines.md - Development standards and architectural principles

Styling & Design

User Experience & Technical

Professional & Business

  • docs/portfolio.md - Complete professional portfolio and resume
  • [docs/Yt jobs breakdown-refactor.md](docs/Yt jobs breakdown-refactor.md) - Client work testimonials (176K+ views, 280+ videos)
  • docs/Website_Integration_Plan.md - Social proof integration strategies

Development Tools & Templates

πŸ“ Documentation Structure

docs/
β”œβ”€β”€ J StaR Personal Platform PRD.md       # 300+ page full PRD
β”œβ”€β”€ Endpoints.md                        # Complete page/feature mapping
β”œβ”€β”€ AdminPageRoutes.md                  # Admin API documentation
β”œβ”€β”€ coding_guidelines.md                # Development standards
β”œβ”€β”€ Styling-in-Next-and-Tailwind-v4.md  # Universal styling guide
β”œβ”€β”€ Styling-Addendum.md                 # Project styling reference
β”œβ”€β”€ MobileFirstResponsiveDesign.md      # Responsive design system
β”œβ”€β”€ animation-guidelines.md             # Animation framework
β”œβ”€β”€ portfolio.md                        # Professional materials
β”œβ”€β”€ Yt jobs breakdown-refactor.md       # Client testimonials
β”œβ”€β”€ Website_Integration_Plan.md         # Social proof strategies
β”œβ”€β”€ ui_crosscheck_prompt.md             # UI verification process
β”œβ”€β”€ TaskSpawnPromptTemplate.md          # Task creation template
β”œβ”€β”€ documentation_guide.md              # Documentation standards
β”œβ”€β”€ ComponentAnalysisPrompt.md          # Component review framework
β”œβ”€β”€ Mockups/                           # 200+ UI mockups
β”œβ”€β”€ JStaR_Mockups/                     # Design iterations
β”œβ”€β”€ features/                          # Feature documentation
└── Export/                           # Configuration exports

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • npm or yarn
  • SQLite (included with Prisma)

Installation

  1. Clone the repository
git clone <repository-url>
cd j-star-platform
  1. Install dependencies
npm install
  1. Set up the database
# Generate Prisma client
npx prisma generate

# Run database migrations
npx prisma db push
  1. Start the development server
npm run dev
  1. Access the platform

πŸ“ Project Structure

j-star-platform/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/                    # πŸ“± Next.js 14 App Router
β”‚   β”‚   β”œβ”€β”€ admin/             # Admin pages & APIs
β”‚   β”‚   β”‚   β”œβ”€β”€ cms/           # Content Management System
β”‚   β”‚   β”‚   β”œβ”€β”€ system-diagnostic/ # Performance monitoring
β”‚   β”‚   β”‚   └── page.tsx       # Admin dashboard
β”‚   β”‚   β”œβ”€β”€ api/               # πŸš€ REST API endpoints
β”‚   β”‚   β”‚   └── admin/         # Admin-protected APIs
β”‚   β”‚   └── globals.css        # 🎨 Tailwind v4 styling
β”‚   β”œβ”€β”€ features/              # 🧩 Feature-based architecture
β”‚   β”‚   β”œβ”€β”€ AdminDashboard/    # Admin monitoring
β”‚   β”‚   β”œβ”€β”€ HeroSlidesManagement/ # CMS hero slides
β”‚   β”‚   β”œβ”€β”€ JohnGPT/          # AI assistant core
β”‚   β”‚   β”œβ”€β”€ CreatorGrowthEngine/ # CGE tools
β”‚   β”‚   └── HomePage/         # Landing page
β”‚   β”œβ”€β”€ components/            # 🧱 Shared components
β”‚   β”œβ”€β”€ lib/                   # πŸ”§ Utilities & providers
β”‚   β”œβ”€β”€ hooks/                 # πŸͺ Custom React hooks
β”‚   └── stores/                # πŸ“¦ State management
β”œβ”€β”€ docs/                      # πŸ“š COMPLETE DOCUMENTATION
β”‚   β”œβ”€β”€ *.md                  # Guidelines & references
β”‚   β”œβ”€β”€ Mockups/              # UI designs
β”‚   └── features/             # Feature docs
β”œβ”€β”€ prisma/                    # πŸ—ƒοΈ Database schema
└── public/                    # πŸ–ΌοΈ Static assets

🎨 Key Features

Admin Dashboard (/admin) - System Control Center

  • πŸ“Š System Status: Real-time monitoring of database, API, CPU, memory, and storage
  • πŸ“ˆ Quick Stats: Key metrics including contact submissions, newsletter signups, and system health
  • ⚑ Quick Actions: Fast access to common admin functions and emergency controls
  • πŸ”” Activity Feed: Latest admin actions and system events with timestamps
  • 🎯 Module Access: Available admin modules with status indicators
  • 🚨 Emergency Panel: System recovery tools and diagnostic utilities

Hero Slides CMS (/admin/cms/hero-slides) - Dynamic Content Management

  • ✨ Full CRUD: Create, read, update, delete homepage slides with live preview
  • 🎨 Rich Customization: Gradient backgrounds, button styling, alt text, project showcases
  • πŸ“± Mobile-First: Responsive design with touch-friendly admin interface
  • πŸ”„ Live Updates: Changes reflect immediately on public homepage
  • πŸ“Š Sort Management: Drag-and-drop ordering with persistence
  • πŸ–ΌοΈ Media Support: Image URL configuration with accessibility features

Contact Management System - Lead Capture & Analytics

  • πŸ“ Form Submissions: Complete contact form management with validation
  • πŸ” Advanced Filtering: Filter by status (PENDING/PROCESSED/RESPONDED), service type, date ranges
  • πŸ“Š Real-time Analytics: Daily metrics, conversion tracking, service breakdown statistics
  • πŸ“§ Newsletter Manager: Subscriber management with admin add/remove capabilities
  • ⚑ High Performance: 85-92% faster API responses through intelligent caching
  • πŸ“ˆ User Insights: Comprehensive analytics with 30-day historical data tracking

System Diagnostics (/admin/system-diagnostic) - Performance Monitoring

  • πŸ–₯️ System Health: CPU, memory, disk usage monitoring with alerts
  • 🌐 API Monitoring: Endpoint health, response times, error tracking
  • πŸ“Š Database Health: Connection status, query performance, optimization metrics
  • ⚑ Performance Metrics: Core Web Vitals, load times, resource monitoring
  • πŸ”§ Diagnostic Tools: Automated testing, troubleshooting utilities
  • πŸ“± Real-time Updates: Live monitoring with WebSocket connections

JohnGPT Assistant (PLANNED) - AI-Powered Creator Support

  • 🧠 Multi-Engine AI: Seamless switching between Ollama, LM Studio, Gemini, OpenAI, and cloud APIs
  • πŸ’¬ Advanced Chat: Markdown rendering, code syntax highlighting, conversation history
  • 🎭 Persona System: Creative Director, Systems Mentor, Faith Guide modes
  • πŸ“š Prompt Library: Save, organize, and reuse custom prompts
  • 🎨 Split-View Canvas: Combined chat and visual ideation workspace
  • 🎰 Agent Slot Machine: A/B test multiple AI models side-by-side

Creator Growth Engine (PLANNED) - Professional Creator Tools

  • πŸ“ˆ YouTube Virality OS: Trend analysis, virality scoring, thumbnail generation with AI
  • 🎣 Client Magnet: Targeted lead generation and personalized outreach automation
  • πŸ“ Scripting Studio: AI-assisted video script writing with Obsidian integration
  • πŸ—οΈ Course Builder: Modular course creation with landing page generation
  • πŸ“Š Analytics Hub: Social media performance tracking and growth metrics

πŸ›  Technology Stack

Frontend Architecture

  • Framework: Next.js 14 with App Router - React-based full-stack framework
  • Language: TypeScript - Strict type safety for complex application architecture
  • Styling: Tailwind CSS v4 - Utility-first CSS with design token system
  • State Management: React Hooks + Custom stores - Component-level and global state
  • Icons: Lucide React - Consistent icon system with accessibility
  • Animations: Framer Motion integration - Performance-optimized motion design

Backend & API Infrastructure

  • Runtime: Node.js - Server-side JavaScript execution
  • API Layer: Next.js API Routes - File-based routing for REST endpoints
  • Database: SQLite with Prisma ORM - Local-first with cloud migration capability
  • Authentication: JWT-based - Secure token authentication for admin routes
  • Caching: Advanced in-memory cache - 83-92% API performance improvement

AI & External Integrations (PLANNED)

  • Multi-Engine Support: Ollama, LM Studio, Google Gemini API, OpenAI, Groq
  • Local AI Processing: ONNX Runtime for offline AI model execution
  • Cloud AI Integration: REST API gateways for various AI providers
  • Document Processing: PDF/DOCX parsing, YouTube video analysis, web scraping

Development & Quality Tools

  • Linting: ESLint with Airbnb configuration - Code quality enforcement
  • Formatting: Prettier - Consistent code formatting across the codebase
  • Type Checking: TypeScript strict mode - Zero-runtime type errors
  • Database Tools: Prisma Studio - Visual database management
  • Testing: Jest + React Testing Library (planned) - Component and integration tests

πŸ“Š Database Schema & API Architecture

Hero Slides Management

CREATE TABLE hero_slides (
  id          TEXT PRIMARY KEY,
  titleLine1   TEXT NOT NULL,
  titleLine2   TEXT NOT NULL,
  tagline     TEXT NOT NULL,
  description TEXT NOT NULL,
  imageUrl    TEXT NOT NULL,
  gradient    TEXT NOT NULL,
  buttonGradient TEXT NOT NULL,
  buttonBorder TEXT NOT NULL,
  buttonText  TEXT NOT NULL,
  buttonHover TEXT NOT NULL,
  isActive    BOOLEAN DEFAULT TRUE,
  sortOrder   INTEGER DEFAULT 0,
  altText     TEXT,
  projectTitle TEXT,
  projectDesc TEXT,
  createdAt   DATETIME DEFAULT CURRENT_TIMESTAMP,
  updatedAt   DATETIME DEFAULT CURRENT_TIMESTAMP,
  createdBy   TEXT
);

Contact Management System

CREATE TABLE contact_submissions (
  id          TEXT PRIMARY KEY,
  name        TEXT NOT NULL,
  email       TEXT NOT NULL,
  subject     TEXT NOT NULL,
  service     TEXT NOT NULL,
  message     TEXT NOT NULL,
  newsletter  BOOLEAN DEFAULT FALSE,
  status      TEXT DEFAULT 'PENDING',
  submittedAt DATETIME DEFAULT CURRENT_TIMESTAMP,
  ipAddress   TEXT,
  userAgent   TEXT,
  adminNotes  TEXT,
  respondedAt DATETIME,
  respondedBy TEXT
);

CREATE TABLE newsletter_subscribers (
  id            TEXT PRIMARY KEY,
  email         TEXT UNIQUE NOT NULL,
  name          TEXT,
  subscribedAt  DATETIME DEFAULT CURRENT_TIMESTAMP,
  unsubscribedAt DATETIME,
  isActive      BOOLEAN DEFAULT TRUE,
  source        TEXT,
  tags          TEXT
);

API Endpoints & Performance

Endpoint Method Purpose Caching Performance Impact
/api/admin/hero-slides GET Retrieve slides 2min TTL 91.7% faster
/api/admin/contacts GET Contact submissions 30sec TTL 85% faster
/api/admin/contacts/analytics GET Analytics data 2min TTL 90% faster
/api/admin/newsletter/subscribers GET Subscriber list 30sec TTL 82% faster
/api/admin/system/metrics GET System metrics 2min TTL 87.5% faster

Rate Limiting & Security

  • Admin APIs: 100 GET/min, 30 POST|PUT|DELETE/min
  • Input Validation: Comprehensive server-side validation
  • SQL Injection Protection: Parameterized Prisma queries
  • Authentication: JWT tokens with role-based access control

🎨 Design System & Themes

Tailwind v4 Token Architecture

@theme {
  /* Platform Identity */
  --color-jstar-blue: #007bff;
  --color-faith-purple: #6f42c1;
  --color-growth-green: #28a745;
  --color-admin-red: #dc3545;
  --color-sacred-gold: #d4af37;

  /* Core System Colors */
  --color-background: #ffffff;
  --color-foreground: #0b1221;
  --color-border: #e5e7eb;
  --color-ring: #3b82f6;

  /* Interactive Elements */
  --color-primary: var(--color-jstar-blue);
  --color-secondary: var(--color-faith-purple);
  --color-accent: var(--color-growth-green);
}

@theme .dark {
  --color-background: #0b1221;
  --color-foreground: #e5e7eb;
  --color-border: #374151;
  --color-ring: #8b5cf6;
}

Component Architecture Guidelines

  • 200-Line Rule: Components exceeding 200 lines trigger automatic refactoring
  • Single Responsibility: One purpose per component with clear boundaries
  • TypeScript First: Strict typing with destructured props and specific interfaces
  • Data Flow: Props down, events up pattern with proper TypeScript contracts
  • Container/Presentational: Smart components manage state, dumb components render UI
  • Custom Hooks: Reusable logic extracted into named hooks starting with use

Animation System

  • Performance Optimized: Transform and opacity based animations
  • Accessibility Aware: Respects prefers-reduced-motion user preference
  • Trigger Types: Hover, click, programmatic, and load state animations
  • Library Integration: Framer Motion with Framer Motion Animate components

Responsive Design Philosophy

  • Mobile-First: Base styles for mobile, progressive enhancement for larger screens
  • Breakpoint System: sm(640px), md(768px), lg(1024px), xl(1280px), 2xl(1536px)
  • Touch Targets: Minimum 44px for all interactive elements
  • Content Scaling: Typography and spacing systems scale predictably
  • Grid Systems: Flexible layouts from single column to complex multi-column grids

πŸ“± Mobile-First Responsive Design

Breakpoint Strategy

  • Mobile (< 768px): Single-stack layouts, touch-optimized interactions
  • Tablet (768px - 1024px): Two-column grids, expanded navigation menus
  • Desktop (> 1024px): Multi-column layouts, complex grid systems
  • Navigation Patterns: Bottom tab bar (mobile), sidebar (tablet+), top navigation (desktop)

Performance Optimizations

  • Image Loading: Next.js Image component with lazy loading and responsive sizing
  • Bundle Splitting: Code splitting by route and feature
  • Caching Strategy: Aggressive caching for static assets and API responses
  • Database Queries: Optimized with selective field loading and pagination

πŸ”’ Security & Privacy

Admin Access Control

  • Role-Based Access: Admin, Guest, Tier 1-3 user classifications
  • API Protection: JWT tokens required for admin endpoints
  • Data Encryption: Sensitive data encrypted at rest and in transit
  • Input Sanitization: All user inputs validated and sanitized

Privacy by Design

  • Local-First Storage: SQLite for private data storage
  • Offline Capability: Platform functions without constant cloud connectivity
  • AI Privacy: JohnGPT data stays local with optional cloud synchronization
  • GDPR Compliance: Data export, deletion, and consent management features

πŸš€ Deployment & Scaling

Development Environment

npm run dev          # Hot reload development server
npm run build        # Production build with optimizations
npm run start        # Production server with performance monitoring
npm run lint         # ESLint code quality checks
npm run type-check   # TypeScript compilation verification

Database Management

npx prisma studio    # Visual database management interface
npx prisma format    # Database schema formatting
npx prisma generate  # Client code generation
npx prisma db push   # Schema migration and deployment

Built with ❀️ for J StaR Films by John Oluleke-Oke

About

A comprehensive, AI-first personal web platform for John Oluleke-Oke (J StaR Films) featuring dynamic content management, admin dashboard, and creator tools.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages