A sleek, modern web platform for the CraftNepal Minecraft server, built with cutting-edge web technologies. Experience player statistics, leaderboards, guides, and community features in a beautifully animated interface.
- Player Statistics Dashboard - Search and view detailed player stats
- Global Leaderboards - Compete across multiple categories (playtime, kills, level, blocks)
- Server Guides - Comprehensive searchable documentation
- Community Feed - Share moments with the community
- Real-time Updates - Powered by React Query with automatic caching
- Smooth Animations - Framer Motion animations throughout
- Fully Responsive - Mobile-first design that works on all devices
- Dark Theme - Minecraft-inspired dark aesthetic with teal and purple gradients
| Technology | Purpose |
|---|---|
| React 19 | UI framework with latest features |
| Vite | Lightning-fast build tool and dev server |
| TypeScript | Type-safe code development |
| Tailwind CSS | Utility-first styling framework |
| Framer Motion | Advanced animations |
| React Query | Server state management |
| React Router | Client-side routing |
| Axios | HTTP client |
- Node.js 16+ and npm/bun
# Install dependencies
npm install
# Copy environment variables
cp .env.example .env
# Update VITE_API_URL in .env to your backend# Start dev server (hot reload enabled)
npm run devVisit http://localhost:5174 in your browser.
# Build and type-check
npm run build
# Preview production build
npm run previewsrc/
โโโ app/ # Application shell & layouts
โโโ shared/ # Shared utilities, types, API config
โโโ features/ # Feature modules (players, leaderboard, guides, feed)
โโโ pages/ # Page components
โโโ main.tsx # Entry point
See MIGRATION.md for detailed architecture documentation.
Customize the theme in tailwind.config.ts:
colors: {
primary: '#1f3e47', // Teal
secondary: '#090515', // Dark Purple
accent: '#eb5569', // Red
}Update the API endpoint in .env:
VITE_API_URL=https://your-api.com/apiThe app expects API endpoints like:
GET /players/:username- Player statsGET /leaderboards/:type- LeaderboardsGET /guides- Server guidesGET /posts- Feed posts
# Install Vercel CLI
npm i -g vercel
# Deploy
vercelnpm run build
# Deploy the dist/ foldernpm run build
# Upload dist/ folder to your hostingnpm run dev # Start dev server
npm run build # Build for production
npm run preview # Preview production build
npm run lint # Run TypeScript & ESLint checks| Page | Route | Features |
|---|---|---|
| Home | / |
Hero, features, top players |
| Leaderboard | /leaderboard |
Multi-tab rankings |
| Guides | /guides |
Search, filter, categories |
| Stats | /stats |
Player search & detailed stats |
| Feed | /feed |
Posts, likes, comments |
import { usePlayer } from '@/features/players/hooks/usePlayer';
function PlayerCard({ username }) {
const { data: player, isLoading } = usePlayer(username);
if (isLoading) return <Skeleton />;
return <Card>{player.username}</Card>;
}import { motion } from 'framer-motion';
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.5 }}
>
Content
</motion.div>Vite automatically uses the next available port. Check terminal output.
- Verify
VITE_API_URLin.env - Ensure backend is running
- Check browser console for CORS errors
npm run lint # Check for TypeScript errors
npm run build # Full build test- Migration Guide - Detailed architecture & setup
- Tailwind Docs
- Framer Motion Docs
- React Query Docs
- Vite Docs
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a Pull Request
CraftNepal ยฉ 2024. All rights reserved.
Experience the CraftNepal Minecraft server and join our community of 2000+ active players!
- Server IP: play.craftnepal.com
- Discord: discord.gg/craftnepal
- Website: craftnepal.com
Built with โค๏ธ for the CraftNepal Community!