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! ๐ŸŽ‰