Modern agricultural technology platform providing smart farming solutions through IoT sensors, AI-powered analytics, and data-driven insights.
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build- 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)
- Node.js 18+
- npm or yarn
- Git
# Clone repository
git clone https://github.com/pantheraworks/agrosken.git
cd agrosken
# Install dependencies
npm install
# Start development server
npm run dev| 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) |
This project includes custom slash commands for Claude Code to streamline development:
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
Enhanced component creation with real-time testing:
- All features of
/componentplus: - 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
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
User: /component hero-banner
Claude: I'll create a hero banner component for you. Let me start by checking out the main branch...
The project includes automated deployment via GitHub Actions:
-
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
-
Manual Deployment
npm run deploy
-
Automated Deployment
- Pushes to
mainbranch trigger automatic deployment - GitHub Actions workflow handles build and FTP upload
- Pushes to
Capture screenshots for visual regression testing:
# Ensure dev server is running
npm run dev
# In another terminal, capture screenshots
npm run screenshotScreenshots are saved to /screenshots/:
full-page.png- Complete homepagehero-section.png- Hero sectionservices-section.png- Services showcasecontact-section.png- Contact formabout-us.png- About pageprivacy-policy.png- Privacy policyfaq.png- FAQ page
This project is proprietary software. All rights reserved.