World-class, production-ready dashboard for SolixDB at dashboard.solixdb.xyz.
- Next.js 15+ with App Router
- TypeScript
- Tailwind CSS for styling
- Shadcn/ui component library
- Framer Motion for animations
- Privy for authentication (Google, GitHub, Email, Solana Wallet)
- Supabase for PostgreSQL database
- React Hook Form + Zod for forms
- Recharts for data visualization
- Zustand for state management
- Lucide React for icons
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env.localfile:# Privy Authentication NEXT_PUBLIC_PRIVY_APP_ID=your-privy-app-id # Supabase Database # Get these from: Supabase Dashboard → Settings → API NEXT_PUBLIC_SUPABASE_URL=https://your-project-id.supabase.co NEXT_PUBLIC_SUPABASE_ANON_KEY=sb_publishable_... # New publishable key SUPABASE_SERVICE_ROLE_KEY=your-secret-key-here # From Secret keys section # API Configuration NEXT_PUBLIC_API_URL=https://api.solixdb.xyz
See
ENV_SETUP.mdfor detailed instructions on getting your API keys. -
Set up Supabase database:
- Create a new Supabase project
- Run the SQL schema from
supabase/schema.sqlin the Supabase SQL Editor - This will create all necessary tables and policies
-
Run the development server:
npm run dev
The database schema is defined in supabase/schema.sql. Run this entire file in your Supabase SQL Editor to create:
userstable (for Privy-authenticated users)api_keystable (for API key management)usage_logstable (for tracking API usage)monthly_creditstable (for credit management)
All tables use Row Level Security (RLS) with service role access.
The dashboard uses Privy for authentication, supporting:
- Email/Password
- Google OAuth
- GitHub OAuth
- Solana Wallet (Phantom, Solflare, etc.)
Users are automatically synced with the Supabase database on first login.
dashboard/
├── src/
│ ├── app/ # Next.js app router pages
│ ├── components/ # React components
│ ├── lib/ # Utilities and helpers
│ ├── config/ # Configuration files
│ └── stores/ # Zustand state stores
├── public/ # Static assets
└── supabase/ # Database schema
The dashboard is ready to deploy to Vercel or any Next.js-compatible platform.
Make sure to set all environment variables in your deployment platform.