Skip to content

pantheraworks/agrosken

Repository files navigation

Agrosken

Modern agricultural technology platform providing smart farming solutions through IoT sensors, AI-powered analytics, and data-driven insights.

🚀 Quick Start

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

📋 Table of Contents

🛠 Tech Stack

  • Frontend: React 19.1.0 + TypeScript
  • Build Tool: Vite
  • Styling: Tailwind CSS v4
  • Animations: Framer Motion
  • Routing: React Router v7
  • Icons: Heroicons
  • Development: ESLint, Prettier, Puppeteer (screenshots)

💻 Development

Prerequisites

  • Node.js 18+
  • npm or yarn
  • Git

Installation

# Clone repository
git clone https://github.com/pantheraworks/agrosken.git
cd agrosken

# Install dependencies
npm install

# Start development server
npm run dev

Available Scripts

Command Description
npm run dev Start development server at http://localhost:5173
npm run build Type check and build for production
npm run preview Preview production build locally
npm run lint Run ESLint
npm run format Format code with Prettier
npm run screenshot Capture screenshots of all pages
npm run deploy Deploy to production (requires .env setup)

🤖 Claude Slash Commands

This project includes custom slash commands for Claude Code to streamline development:

/component - Component Creation

Creates new components from reference images with automated workflow:

  • Switches to main branch and creates feature branch
  • Searches reference folder for matching designs
  • Generates component with appropriate styling
  • Creates staging endpoint for preview
  • Optionally creates PR when complete

/component-browser - Browser-Tested Components

Enhanced component creation with real-time testing:

  • All features of /component plus:
  • Live browser preview using MCP tools
  • Visual comparison with reference designs
  • Interaction testing (hover, click states)
  • Console error checking
  • Iterative refinement based on browser feedback

/refactor - Code Quality

Analyzes and improves code quality:

  • Identifies code duplication
  • Finds long functions (>50 lines)
  • Detects complex conditionals
  • Adds missing TypeScript types
  • Fixes performance issues
  • Addresses accessibility concerns
  • Creates PR with detailed improvements

Usage Example

User: /component hero-banner
Claude: I'll create a hero banner component for you. Let me start by checking out the main branch...

🚀 Deployment

The project includes automated deployment via GitHub Actions:

  1. Setup Environment Variables

    # Create .env file
    cp .env.example .env
    
    # Add your FTP credentials
    FTP_HOST=your-host.com
    FTP_USER=your-username
    FTP_PASSWORD=your-password
  2. Manual Deployment

    npm run deploy
  3. Automated Deployment

    • Pushes to main branch trigger automatic deployment
    • GitHub Actions workflow handles build and FTP upload

📸 Visual Testing

Capture screenshots for visual regression testing:

# Ensure dev server is running
npm run dev

# In another terminal, capture screenshots
npm run screenshot

Screenshots are saved to /screenshots/:

  • full-page.png - Complete homepage
  • hero-section.png - Hero section
  • services-section.png - Services showcase
  • contact-section.png - Contact form
  • about-us.png - About page
  • privacy-policy.png - Privacy policy
  • faq.png - FAQ page

📄 License

This project is proprietary software. All rights reserved.

About

Agrosken website

Resources

Stars

Watchers

Forks

Contributors