-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
125 lines (103 loc) · 5.43 KB
/
Copy path.env.example
File metadata and controls
125 lines (103 loc) · 5.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# =============================================================================
# BROWSER EXPLORER - ENVIRONMENT CONFIGURATION
# =============================================================================
# This file contains environment variables for configuring the browser explorer
# and automated test generation system. Copy from .env.example and modify as needed.
# WARNING: This file contains sensitive information - never commit to git!
# =============================================================================
# -----------------------------------------------------------------------------
# APPLICATION CONFIGURATION
# -----------------------------------------------------------------------------
# Environment mode: development, production, or test
# Affects logging levels, error handling, and security measures
NODE_ENV=development
# Logging verbosity: error, warn, info, debug
# Controls the amount of detail in application logs
LOG_LEVEL=info
# Port number for the application server
# HTTP server will listen on this port for incoming requests
PORT=3000
# -----------------------------------------------------------------------------
# DATABASE CONFIGURATION
# -----------------------------------------------------------------------------
# PostgreSQL connection string for storing crawl data and test results
# Format: postgresql://username:password@host:port/database
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/browser_explorer
# -----------------------------------------------------------------------------
# REDIS CONFIGURATION
# -----------------------------------------------------------------------------
# Redis connection URL for caching and session management
# Used for storing temporary data and improving performance
REDIS_URL=redis://localhost:6379
# -----------------------------------------------------------------------------
# AI API KEYS
# -----------------------------------------------------------------------------
# OpenAI API key for GPT models used in test generation and analysis
# Required for AI-powered test creation and code analysis
OPENAI_API_KEY=your_openai_api_key_here
# Anthropic API key for Claude models used in test generation and analysis
# Alternative AI provider for enhanced test generation capabilities
ANTHROPIC_API_KEY=your_anthropic_api_key_here
# -----------------------------------------------------------------------------
# BROWSERBASE CONFIGURATION
# -----------------------------------------------------------------------------
# BrowserBase API key for cloud browser automation
# Enables running tests in cloud-based browser instances
BROWSERBASE_API_KEY=your_browserbase_api_key_here
# BrowserBase project ID for organizing browser sessions
# Groups related browser automation sessions under a project
BROWSERBASE_PROJECT_ID=your_browserbase_project_id_here
# -----------------------------------------------------------------------------
# CRAWLER CONFIGURATION
# -----------------------------------------------------------------------------
# Starting URL for web crawling operations
# The initial page where crawling will begin
START_URL=https://example.com
# Maximum depth to crawl from the starting URL
# Controls how many levels deep the crawler will explore
MAX_CRAWL_DEPTH=3
# Maximum number of pages to crawl in a single session
# Prevents runaway crawling operations
MAX_PAGES=100
# Delay in milliseconds between page requests to avoid rate limiting
# Helps prevent being blocked by target websites
CRAWL_DELAY=1000
# Number of parallel workers for concurrent crawling
# Increases crawling speed but uses more resources
PARALLEL_WORKERS=5
# -----------------------------------------------------------------------------
# BROWSER CONFIGURATION
# -----------------------------------------------------------------------------
# Run browser in headless mode (true) or with GUI (false)
# Headless mode is faster and uses less resources
HEADLESS_MODE=true
# Timeout in milliseconds for browser operations
# Maximum time to wait for page loads and interactions
BROWSER_TIMEOUT=30000
# -----------------------------------------------------------------------------
# TEST GENERATION CONFIGURATION
# -----------------------------------------------------------------------------
# Directory path where generated test files will be saved
# All generated tests and supporting files will be written here
OUTPUT_DIRECTORY=./generated-tests
# Generate page object model files alongside tests (true/false)
# Creates reusable page object classes for better test organization
GENERATE_PAGE_OBJECTS=true
# Include visual regression assertions in generated tests (true/false)
# Adds screenshot comparisons to detect visual changes
GENERATE_VISUAL_ASSERTIONS=true
# -----------------------------------------------------------------------------
# AUTHENTICATION CONFIGURATION (OPTIONAL)
# -----------------------------------------------------------------------------
# Username for sites requiring basic authentication
# Used when crawling password-protected websites
# AUTH_USERNAME=your_username
# Password for sites requiring basic authentication
# Corresponding password for the authentication username
# AUTH_PASSWORD=your_password
# -----------------------------------------------------------------------------
# DEVELOPMENT & DEBUG CONFIGURATION
# -----------------------------------------------------------------------------
# Enable debug mode for verbose logging and additional output
# Provides detailed information for troubleshooting
DEBUG=false