A comprehensive solution for optimizing agricultural resources through advanced data analytics, IoT integration, and machine learning, built with Next.js 15, Tailwind CSS, and TypeScript.
- ⚡ Next.js 15 - The latest version with App Router
- 🎨 Tailwind CSS - Utility-first CSS framework
- 📘 TypeScript - Type-safe code
- 🔒 Authentication - Clerk integration with persistent authorization toggle
- 🎭 Shadcn/ui - Beautiful and accessible components
- 💾 Convex DB - Real-time database with built-in file storage and serverless functions
- 💳 Polar.sh - Open-source solution for managing subscriptions and payments
- 🚀 Route Prefetching - Instant page transitions for dashboard, Farm AI, and auth pages
- 🖼️ Optimized Images - Eager loading for critical images
- 🌓 Dark/Light Mode - System-aware theme switching with custom gradients
- 📱 Responsive Design - Mobile-first approach
- 🔄 Real-time Updates - Powered by Convex DB's real-time capabilities
- 🧩 Component Library - Pre-built, customizable components
- 🎮 Farm AI - Built-in AI chat interface
- 📊 Dashboard Template - Ready-to-use admin interface with subscription management
- 🔍 SEO Optimized - Meta tags and sitemap generation
To set up your Convex database, visit: [https://convex.dev/referral/SAMRAN3832]
- Clone the repository:
git clone- Install dependencies:
bun install- Set up environment variables:
Create a .env.local file in the project root with the following content (replace values as needed):
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
CLERK_SECRET_KEY=your_clerk_secret_key
# Deployment used by `npx convex dev`
CONVEX_DEPLOYMENT=your_convex_deployment
NEXT_PUBLIC_CONVEX_URL=your_convex_url
POLAR_ACCESS_TOKEN=your_polar_access_token
OPENAI_API_KEY=your_openai_api_key
DEEPSEEK_API_KEY=your_deepseek_api_key
GOOGLE_GENERATIVE_AI_API_KEY=your_google_generative_ai_api_key
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/
# Convex
NEXT_PUBLIC_CONVEX_URL=
CONVEX_DEPLOYMENT=
CONVEX_ADMIN_KEY=
# Polar.sh
POLAR_WEBHOOK_SECRET=
# Frontend
NEXT_PUBLIC_BASE_URL=http://localhost:3000
# Optional: AI Integration
OPENAI_API_KEY=- Run the development server:
bun run devOpen http://localhost:3000 to see your application.
├── app/
│ ├── (auth)/ # Authentication routes
│ ├── (marketing)/ # Marketing pages
│ ├── api/ # API routes
│ ├── dashboard/ # Dashboard pages
│ └── playground/ # AI Playground
├── components/
│ ├── homepage/ # Landing page components
│ ├── shared/ # Shared UI components
│ └── wrapper/ # Layout wrappers and navigation
├── config/ # Configuration files
├── convex/ # Convex DB schema and functions
├── lib/ # Utility functions
├── public/ # Static assets
│ ├── images/ # Image assets
│ └── svg/ # SVG assets
└── styles/ # Global styles
bun run dev- Start development serverbun run build- Build for productionbun run start- Start production serverbun run lint- Run ESLintbun run format- Format code with Prettier
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
If you find this template helpful, please give it a ⭐️ on GitHub!