Setup & Installation Guide
A complete guide to setting up and running the Intervo.ai open-source application using Docker for local development.
Intervo.ai: Application Setup Guide
This guide will walk you through setting up and running the Intervo.ai application using Docker Compose in a local development environment.
๐ฆ Prerequisites
Before you start, ensure the following software is installed:
Required Tools
- Docker & Docker Compose
Install Docker Desktop (includes Docker Engine + Compose). - Git
Install Git for your operating system. - FFmpeg
Required for audio processing.
FFmpeg Installation
macOS (Homebrew)
Ubuntu/Debian
Windows
๐ฅ๏ธ Minimum System Requirements
- RAM: 4GB (8GB recommended)
- Disk Space: 10GB minimum (Docker images, volumes, source files)
๐ Project Structure
๐ Setup Instructions
1. Clone the Repository
2. Verify Directory Structure
Ensure the structure matches the layout above. Docker volumes and npm workspaces depend on this.
3. Start the Application
Foreground (with logs)
Detached Mode
4. First-Time Setup
On the first run, Docker will:
- Pull base images
- Install npm and pip dependencies
- Initialize MongoDB
Startup Order:
- MongoDB
- Backend (after MongoDB is ready)
- Frontend and RAG API (in parallel)
๐ Accessing Services
Service | URL/Port |
---|---|
Frontend | http://localhost:3000 |
Backend API | http://localhost:3001 |
RAG API | http://localhost:4003 |
MongoDB URI | mongodb://admin:password123@localhost:27017/intervo?authSource=admin |
๐ Development Workflow
Code Changes
- Frontend: Auto-reloads via Next.js
- Backend: Auto-restarts via
nodemon
- RAG API: Restart container manually after changes
View Logs
๐งช Managing the Application
Stop Services
Clean Reset (Remove Volumes)
Rebuild Services
Restart Specific Service
๐ข๏ธ Database Access
Connection Info
- Host:
localhost:27017
- Username:
admin
- Password:
password123
- DB Name:
intervo
- Auth Source:
admin
MongoDB Compass
Use:
Command Line
๐งฉ Troubleshooting
Common Issues
-
Port Conflicts
Check with:sudo lsof -i :3000
-
Docker Stuck
Restart Docker or run:docker system prune
-
Corrupt Volumes
Run:docker-compose -f docker-compose.yml down -v
-
Build Failures
Clean and rebuild:
Debugging Services
๐ก Development Tips
-
Live Reload: Code changes reflect instantly due to mounted volumes
-
Persistent MongoDB: Data is stored in Docker volume
mongodb_data
-
Clean Fix: If stuck, run:
๐ Environment Variables
Defined in docker-compose.yml
:
โ Next Steps
- Visit the app at: http://localhost:3000
- Test API endpoints via Postman or browser at http://localhost:3001
- Check RAG API status at http://localhost:4003
๐ Production Deployment
For production, create a dedicated and secure docker-compose.prod.yml
and update environment variables and secrets accordingly.
Happy coding! ๐