- Node.js 18 or higher
- npm or yarn package manager
- Supabase account for authentication
npm installCreate a .env.local file in the root directory:
# Supabase Configuration (Required)
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
# Development Configuration (Optional)
NEXT_PUBLIC_APP_ENV=dev # Enable development logging
NODE_ENV=development # Automatically enables loggingThe application is configured to use the sandbox API by default. You can modify this in lib/utils/config.ts:
- Default:
https://sandbox.service.crestal.dev(Production sandbox) - Local Development: Change to
http://127.0.0.1:8000for local API - Custom: Update the configuration as needed
npm run devThe application will be available at http://localhost:3000.
- Create a Supabase project at supabase.com
- Get your project URL and anon key from the API settings
- Add them to your
.env.localfile - The app will handle user registration and authentication automatically
For production deployment:
-
Set environment variables:
NEXT_PUBLIC_SUPABASE_URL=your_production_supabase_url NEXT_PUBLIC_SUPABASE_ANON_KEY=your_production_supabase_anon_key NEXT_PUBLIC_APP_ENV=prod # Disable logging NODE_ENV=production -
Build and deploy:
npm run build npm start
- Authentication errors: Verify your Supabase credentials
- API connection issues: Check the base URL configuration
- Build errors: Ensure all dependencies are installed
For technical issues, contact: support@crestal.network