A sophisticated Next.js-based prediction market simulation platform that allows users to practice trading with virtual funds, analyze market patterns, and build confidence before risking real capital in prediction markets.
This platform provides a risk-free environment for users to master prediction trading through advanced simulation features, real-time market data, and comprehensive analytics. Built with modern web technologies and blockchain integration, it offers a complete trading experience without financial risk.
- Virtual Portfolio Management: Practice with $50K virtual funds
- Risk-Free Learning: Test strategies without financial consequences
- Real-Time Market Data: Access live prediction market information
- Performance Tracking: Monitor accuracy rates and trading success
- Prediction Accuracy Tracking: Monitor success rates (87% average)
- Portfolio Performance: Real-time virtual profit/loss tracking
- Market Analysis: AI-powered market insights and trends
- Historical Data: Comprehensive trading history and analytics
- Particle Network ConnectKit: Seamless wallet connectivity
- Multi-Chain Support: Core DAO, Core Testnet, Solana
- Social Login: Email, Google, Apple, Twitter, GitHub authentication
- Universal Account SDK: Advanced wallet management
- Dark Theme Design: Professional crypto-focused interface
- Responsive Layout: Optimized for all device sizes
- Interactive Charts: Real-time data visualization
- Smooth Animations: Enhanced user experience
- Next.js 15.3.5: React framework with App Router
- React 19: Latest React features and performance
- TypeScript: Type-safe development
- Tailwind CSS 4: Modern utility-first CSS framework
- Radix UI: Accessible component primitives
- Lucide React: Beautiful icon library
- Recharts: Data visualization components
- Sonner: Toast notifications
- Particle Network: Wallet connectivity and authentication
- Ethers.js: Ethereum interaction
- Viem: Type-safe Ethereum interactions
- React Query: Data fetching and caching
- ESLint: Code linting and formatting
- pnpm: Fast package management
- Turbopack: Next.js bundler for development
- Node.js 18+
- pnpm (recommended) or npm
- Particle Network account and API keys
Create a .env.local file in the root directory:
NEXT_PUBLIC_PROJECT_ID=your_particle_project_id
NEXT_PUBLIC_CLIENT_KEY=your_particle_client_key
NEXT_PUBLIC_APP_ID=your_particle_app_id-
Clone the repository
git clone https://github.com/ctib-core/frontend.git cd frontend -
Install dependencies
pnpm install # or npm install -
Run the development server
pnpm dev # or npm run dev -
Open your browser Navigate to http://localhost:3000
frontend/
โโโ src/
โ โโโ app/ # Next.js App Router
โ โ โโโ app/ # Main application pages
โ โ โ โโโ markets/ # Market trading interface
โ โ โ โโโ portfolio/ # Portfolio dashboard
โ โ โ โโโ trading/ # Trading interface
โ โ โ โโโ wallet/ # Wallet management
โ โ โ โโโ vaults/ # Vault features
โ โ โ โโโ swap/ # Token swapping
โ โ โ โโโ ui/ # UI component examples
โ โ โโโ globals.css # Global styles
โ โ โโโ layout.tsx # Root layout
โ โ โโโ page.tsx # Landing page
โ โโโ components/ # Reusable components
โ โ โโโ ui/ # Base UI components
โ โ โโโ cryptoHub.tsx # Market hub component
โ โ โโโ hero.tsx # Landing hero section
โ โ โโโ sidebar.tsx # Navigation sidebar
โ โ โโโ portfolioDashboard.tsx # Portfolio interface
โ โโโ lib/ # Utility libraries
โ โ โโโ particle.tsx # Particle Network config
โ โ โโโ utils.ts # Utility functions
โ โโโ utils/ # Type definitions
โโโ public/ # Static assets
โโโ package.json # Dependencies and scripts
โโโ README.md # Project documentation
- Hero section with platform introduction
- Feature showcase with simulation benefits
- Live prediction markets display
- Call-to-action sections
- Portfolio Dashboard: Virtual portfolio management
- Markets: Live prediction market trading
- Trading Interface: Advanced trading tools
- Wallet Management: Secure wallet connectivity
- Vaults: Yield farming and staking
- Swap: Token exchange functionality
- Menu styles and navigation
- Data tables and forms
- Chart components and modals
- Pricing and settings interfaces
# Development server with Turbopack
pnpm dev
# Production build
pnpm build
# Start production server
pnpm start
# Lint code
pnpm lint- Primary:
#b6ff3b(Neon Green) - Background:
#0a0f1a(Dark Blue) - Card:
rgba(16,20,26,0.85)(Semi-transparent) - Border:
#23272f(Dark Gray) - Text:
#f1f5f9(Light Gray)
- Font Family: Geist Sans (Primary), Geist Mono (Code)
- Responsive Design: Mobile-first approach
- Custom Scrollbars: Styled for dark theme
- Particle Network Integration: Secure wallet authentication
- Environment Variables: Secure API key management
- TypeScript: Type-safe development
- ESLint: Code quality and security checks
- Next.js 15: Latest performance features
- Turbopack: Fast development bundling
- Image Optimization: Next.js built-in optimization
- Code Splitting: Automatic route-based splitting
- React Query: Efficient data fetching and caching
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is part of the CTIB Core ecosystem. Please refer to the project maintainers for licensing information.
- Repository: https://github.com/ctib-core/frontend/
- Particle Network: https://particle.network/
- Next.js Documentation: https://nextjs.org/docs
- Tailwind CSS: https://tailwindcss.com/
For support and questions:
- Create an issue in the GitHub repository
- Check the documentation in
/app/documentation - Contact the development team
Built with โค๏ธ using Next.js, React, and Particle Network