Skip to content

90barricade93/pi-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pi Dashboard

Next.js React TypeScript Tailwind CSS License CI/CD

Een moderne, performante en veilige dashboard applicatie voor het monitoren van Pi Network statistieken, prijzen en nieuws.

🚀 Features

  • ⚡️ Real-time prijstracking via OKX API
  • 📊 Prijsvoorspellingen gebaseerd op historische data
  • 🧮 Pi Calculator voor waarde berekeningen
  • 📰 Nieuws feed met Pi Network tweets integratie
  • 📈 Netwerk statistieken
  • 🌓 Dark/Light thema ondersteuning
  • 📱 Responsive design
  • ♿️ Toegankelijkheid (ARIA)
  • 🔒 Security best practices

🛠️ Technische Stack

  • Framework: Next.js 15
  • UI Library: React 18
  • Type Safety: TypeScript
  • Styling: Tailwind CSS
  • Components: Radix UI
  • API's: OKX API, Twitter API v2
  • Testing: Jest & Playwright
  • CI/CD: GitHub Actions
  • Code Quality: ESLint & Prettier

📋 Vereisten

  • Node.js 20.x
  • npm 10.x
  • OKX API credentials
  • Twitter API credentials

🔑 Environment Variables

# API Credentials
OKX_API_KEY=jouw_api_key
OKX_API_SECRET=jouw_api_secret
OKX_PASSPHRASE=jouw_passphrase
TWITTER_BEARER_TOKEN=jouw_twitter_token

🚀 Setup

  1. Clone de repository:
git clone https://github.com/yourusername/pi-dashboard.git
cd pi-dashboard
  1. Installeer dependencies:
npm install
  1. Configureer environment variables:
cp .env.example .env.local
  1. Start de development server:
npm run dev

🧪 Code Kwaliteit & Testing

Quality Tools

  • 🔍 ESLint voor code linting
  • ✨ Prettier voor code formatting
  • 🐶 Husky voor pre-commit hooks
  • ⚡️ lint-staged voor efficiënte linting

Scripts

  • npm run lint: ESLint check
  • npm run lint:fix: ESLint fix
  • npm run format: Prettier format
  • npm run format:check: Prettier check
  • npm run type-check: TypeScript check
  • npm run validate: Alle checks
  • npm test: Unit tests
  • npm run test:e2e: E2E tests

🚀 Deployment

De applicatie is geoptimaliseerd voor Vercel deployment:

  1. Push naar GitHub
  2. Verbind met Vercel
  3. Configureer variables
  4. Deploy! 🎉

⚡️ API Rate Limiting

  • OKX API: Cache 4 uur
  • Twitter API: Max 3 tweets/request, 4 uur cache

🤝 Contributing

  1. Fork de repository
  2. Maak een feature branch
  3. Commit wijzigingen (Conventional Commits)
  4. Push naar de branch
  5. Open een Pull Request

📄 License

MIT License - Zie LICENSE bestand voor details

📞 Contact & Support

🙏 Credits

About

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages