A modern Next.js application for the TriggerX platform, providing a comprehensive interface for blockchain job automation, API management, and developer tools.
- Job Creation & Management: Create and manage automated blockchain jobs with various trigger types
- Dashboard: Monitor active jobs, view logs, and manage balances
- API Documentation: Interactive API documentation with code examples
- Developer Hub: Technical articles and resources for developers
- Leaderboard: Track contributions and achievements
- Wallet Integration: Seamless Web3 wallet connection with RainbowKit
- Sanity CMS: Content management for blog posts and documentation
- Framework: Next.js 15 with App Router
- Language: TypeScript
- Styling: Tailwind CSS with custom animations
- UI Components: Radix UI, Ant Design, Lucide React icons
- Web3: Wagmi, Viem, Ethers.js, RainbowKit
- State Management: React Query (TanStack Query)
- CMS: Sanity Studio
- Node.js 18+
- npm, yarn, pnpm, or bun
- Web3 wallet (MetaMask, WalletConnect, etc.)
git clone https://github.com/trigg3rX/triggerX-frontend-nextjs.git
cd triggerX-frontend-nextjsnpm install
# or
yarn install
# or
pnpm install
# or
bun installCreate a .env.local file in the root directory and add your environment variables:
# Sanity Configuration
NEXT_PUBLIC_SANITY_PROJECT_ID=your_sanity_project_id
NEXT_PUBLIC_SANITY_DATASET=production
NEXT_PUBLIC_SANITY_API_VERSION=2024-01-01
# API Configuration
NEXT_PUBLIC_API_BASE_URL=http://192.168.1.38:9002
NEXT_PUBLIC_API_KEY=your_api_key_here
NEXT_PUBLIC_USER=your_user_here
# WebSocket Configuration
NEXT_PUBLIC_WEBSOCKET_URL=ws://192.168.1.38:9002/api/ws/tasks
# Web3 Configuration (if needed)
NEXT_PUBLIC_CHAIN_ID=1
NEXT_PUBLIC_RPC_URL=your_rpc_urlnpm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
src/
├── app/ # Next.js App Router pages
│ ├── api/ # API routes
│ ├── dashboard/ # Dashboard pages
│ ├── devhub/ # Developer hub pages
│ ├── leaderboard/ # Leaderboard pages
│ └── studio/ # Sanity Studio
├── components/ # React components
│ ├── api/ # API-related components
│ ├── common/ # Shared components
│ ├── create-job/ # Job creation components
│ ├── dashboard/ # Dashboard components
│ ├── devhub/ # DevHub components
│ ├── leaderboard/ # Leaderboard components
│ └── ui/ # UI components
├── contexts/ # React contexts
├── hooks/ # Custom React hooks
├── lib/ # Utility libraries
├── sanity/ # Sanity CMS configuration
├── types/ # TypeScript type definitions
└── utils/ # Utility functions
npm run dev- Start development server with Turbopacknpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLintnpm run format- Format code with Prettiernpm run type-check- Run TypeScript type checking
The project uses Next.js 15 with Turbopack for faster development builds. Configuration is in next.config.ts.
Content management is handled by Sanity Studio, accessible at /studio. Configuration is in sanity.config.ts.
Styling is done with Tailwind CSS with custom animations and responsive design.
The easiest way to deploy your Next.js app is to use the Vercel Platform.
Make sure to set the following environment variables in your deployment platform:
NEXT_PUBLIC_SANITY_PROJECT_IDNEXT_PUBLIC_SANITY_DATASETNEXT_PUBLIC_SANITY_API_VERSION
Built with ❤️ using Next.js, TypeScript, and modern web technologies.