Table of Contents
Setup Overview
The Maru Lead Generation Engine comes pre-configured with admin access and database connectivity. This guide walks you through accessing your dashboard and verifying your setup.
What You'll Set Up
- Admin dashboard access
- Database connection verification
- Environment configuration check
- Assessment tools functionality
Admin Dashboard Access
Navigate to Admin Dashboard
Open your browser and go to the admin dashboard:
URL: http://localhost:3000/admin
Production: https://your-domain.com/adminLogin with Admin Credentials
Use the default admin credentials to log in:
Email: hello@maruonline.com
Password: MaruAdmin2024!Security Note
Verify Dashboard Access
After successful login, you should see:
- Analytics overview with lead metrics
- Recent assessments list
- Performance charts
- Navigation menu with all admin features
Initial Configuration
Environment Variables Check
Verify your .env.local file contains all required variables:
# Database Configuration
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_ANON_KEY=your_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
# AI Configuration
GOOGLE_AI_API_KEY=your_google_ai_key
# Admin Authentication
ADMIN_EMAIL=hello@maruonline.com
ADMIN_PASSWORD=MaruAdmin2024!
# Application URLs
NEXT_PUBLIC_SITE_URL=http://localhost:3000
NEXT_PUBLIC_APP_URL=http://localhost:3000Database Connection
Your Supabase database should be configured with:
- Main schema tables (leads, assessments, tools, etc.)
- Analytics tables (events, metrics, funnel)
- Row Level Security policies
- Sample tool data
Environment Setup
Development Environment
Start Development Server
npm run devThe server should start on http://localhost:3000
Verify All Services
Check that all components are working:
- ✅ Homepage loads correctly
- ✅ Assessment tools are accessible
- ✅ Admin dashboard login works
- ✅ Database queries execute successfully
Production Environment
For production deployment:
- Update NEXT_PUBLIC_SITE_URL to your domain
- Change default admin password
- Configure proper CORS settings
- Set up SSL certificates
- Enable production logging
Setup Verification
Test Assessment Flow
Run a Test Assessment
Navigate to any assessment tool and complete a test:
1. Go to /assessments/lead-score
2. Fill out the form with test data
3. Submit and wait for AI processing
4. Verify results are displayed
5. Check admin dashboard for new leadVerify Data Storage
In the admin dashboard, confirm:
- New lead appears in leads list
- Assessment data is stored correctly
- Analytics events are tracked
- All timestamps are accurate
Common Setup Issues
Cannot access admin dashboard
Solution: Check admin credentials and ensure middleware is configured correctly.
Verify ADMIN_EMAIL and ADMIN_PASSWORD in .env.local match your login attempt.
Database connection errors
Solution: Verify Supabase credentials and check RLS policies.
Ensure service role key has proper permissions for all tables.
AI assessments not working
Solution: Check Google AI API key and rate limits.
Verify GOOGLE_AI_API_KEY is valid and has sufficient quota.
Setup Complete!
Once you can successfully log into the admin dashboard and complete a test assessment, your setup is complete. Continue with theFirst Assessment Walkthrough to learn how to use the system effectively.
Next Steps
Was this article helpful?
Let us know if you found this documentation useful or if you have suggestions for improvement.