Getting Started

Account Setup

Complete guide to setting up your Maru Lead Generation Engine account and accessing the admin dashboard.

Maru Team
8 min read
Updated December 23, 2024

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

1

Navigate to Admin Dashboard

Open your browser and go to the admin dashboard:

URL: http://localhost:3000/admin
Production: https://your-domain.com/admin
2

Login with Admin Credentials

Use the default admin credentials to log in:

Default Admin Credentials
Email: hello@maruonline.com
Password: MaruAdmin2024!

Security Note

Change the default admin password in production by updating the ADMIN_PASSWORD environment variable in your .env.local file.
3

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:

Required Environment 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:3000

Database 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

1

Start Development Server

npm run dev

The server should start on http://localhost:3000

2

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

1

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 lead
2

Verify 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.