Admin CRM Access Guide
Complete documentation for accessing and using the Ghantakarna Mandir admin dashboard
API Endpoints
Admin Login
POST /api/admin/login
Request Body:
{
"email": "admin@example.com",
"password": "your_password"
}Get Analytics Dashboard
GET /api/admin/analytics
Returns comprehensive statistics about donations, users, bookings, and more.
Get Donations
GET /api/admin/donations
Returns all donations with statistics and trends
Get Contact Messages
GET /api/admin/contacts
Get Prayer Bookings
GET /api/admin/bookings
Get Gallery Submissions
GET /api/admin/gallery
Environment Variables Setup
Required Variables
Add these to your Vercel project environment variables
ADMIN_EMAILS
admin@mandir.com,coordinator@mandir.comComma-separated list of admin email addresses
ADMIN_PASSWORD
your_secure_password_herePassword for all admin users (use strong password)
CRM Dashboard Features
📊 Analytics
Real-time dashboard with donation trends, user statistics, and engagement metrics
💰 Donations
Track all donations, view donor history, manage donation certificates
👥 Users
Manage community members, track activity, send notifications
📸 Gallery
Review and moderate user-submitted temple photos
📋 Bookings
Manage prayer service bookings and puja reservations
📧 Communications
Send newsletters and notifications to devotees
How to Access the CRM
1Navigate to Admin Login
Go to /auth/login
2Enter Admin Credentials
Use your admin email and password to login
3Access Dashboard
You'll be redirected to /admin dashboard
4Navigate Admin Features
Use tabs to view donations, users, gallery, bookings, and analytics