Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The Web App

The Web App provides a user-friendly dashboard for managing your CSV analysis reports.

Running the Server

Run the ./csvreport ui command. On the first run, it will create a config.toml file in its directory.

Configuration (config.toml)

The config.toml file allows you to tune the server for your specific environment.

Server Settings

  • port: The network port the server listens on (default: 5070).
  • host: The IP address to bind to (use "0.0.0.0" to listen on all interfaces).
  • max_upload_size_mb: Limits the size of uploaded CSV files.

Example:

[server]
port = 8080
host = "127.0.0.1"
max_upload_size_mb = 1024  # Allow up to 1GB uploads

CLI Settings

  • executable_path: The path to the csvreport binary used for analysis (defaults to itself).
  • timeout_seconds: How long to wait for the analysis to complete before timing out.

Example:

[cli]
executable_path = "./csvreport"
timeout_seconds = 300  # Give large files 5 minutes to process

Logging

  • level: The verbosity of the server logs (error, warn, info, debug).

Example:

[logging]
level = "debug"

Storage Cleanup

Automatically remove old files to save disk space.

  • enabled: Set to true to activate the cleanup task.
  • interval_minutes: How often the cleanup task runs.
  • retention_hours: Files older than this will be deleted.

Example:

[cleanup]
enabled = true
interval_minutes = 60    # Check every hour
retention_hours = 48     # Keep files for 2 days