Prerequisites
Before you begin, ensure you have:- Node.js 18+ installed
- MongoDB instance (local or cloud like MongoDB Atlas)
- npm or bun package manager
- A Google Gemini API key (optional, for AI features)
Step 1: Deploy VIJ Admin Dashboard
1
Clone the repository
Clone the VIJ Admin repository to your local machine:
2
Install dependencies
Install the required npm packages:
3
Configure environment variables
4
Start the development server
Run the Next.js development server:Open http://localhost:3000 to see your dashboard.
Your VIJ Admin dashboard is now running! You should see an empty dashboard ready to receive error logs.
Step 2: Integrate vij-sdk in Your Application
1
Install the SDK
Install
vij-sdk in your application:2
Initialize the SDK
Add VIJ initialization code to your application entry point:For React apps, add this to your
- Browser (React/Vue/etc)
- Node.js (Express/Next.js)
- Next.js App Router
main.js
main.jsx or index.js before rendering your app.3
Test error tracking
Trigger a test error to verify integration:
Check your dashboard at http://localhost:3000/logs — you should see your test error appear within a few seconds!
Step 3: Explore the Dashboard
Now that errors are flowing in, explore the dashboard features:Dashboard Home
View error trends, severity distribution, and recent events
Logs View
Browse all errors with filtering and search capabilities
Error Details
Inspect stack traces, metadata, and AI analysis
Error Groups
View grouped errors and occurrence counts
Next Steps
1
Configure SDK options
Customize batching, queue size, and other SDK settings for your use case.SDK Configuration →
2
Enable AI features
Set up Google Gemini for automatic error analysis and fix suggestions.AI Integration →
3
Deploy to production
Learn how to deploy VIJ Admin to Vercel, Docker, or your own infrastructure.Deployment Guide →
4
Explore advanced filtering
Use advanced filters, search, and grouping to find errors faster.Filtering & Search →
Troubleshooting
Errors not appearing in dashboard
Errors not appearing in dashboard
Check the following:
- Ensure MongoDB is running and accessible
- Verify
MONGODB_URIin.env.localis correct - Check that
endpointin SDKinit()points to your VIJ Admin URL - Look for network errors in browser console or server logs
- Ensure CORS is not blocking requests (VIJ Admin allows all origins by default)
Dashboard shows connection error
Dashboard shows connection error
Common causes:
- MongoDB is not running. Start it with
mongodor check your cloud connection MONGODB_URIenvironment variable is missing or incorrect- Firewall blocking MongoDB port (default: 27017)
AI analysis not showing
AI analysis not showing
Verify:
GEMINI_API_KEYis set in.env.local- API key is valid and has quota available
- Check Next.js server logs for AI-related errors
AI features are optional. VIJ works perfectly without them — you just won’t see AI-generated summaries and fix suggestions.
What You’ve Accomplished
You’ve successfully:- Deployed the VIJ Admin dashboard locally
- Integrated vij-sdk into your application
- Sent your first error to the monitoring system
- Explored the dashboard features
Your self-hosted error monitoring is now live! Continue reading to learn about advanced features and production deployment.