Skip to main content

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:
  1. MongoDB
  2. Backend (after MongoDB is ready)
  3. Frontend and RAG API (in parallel)

🌐 Accessing Services


πŸ›  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


πŸš€ Production Deployment

For production, create a dedicated and secure docker-compose.prod.yml and update environment variables and secrets accordingly.
Happy coding! πŸŽ‰