diff --git a/frontend/.env.example b/frontend/.env.example index f1175c7..076865c 100644 --- a/frontend/.env.example +++ b/frontend/.env.example @@ -11,5 +11,12 @@ NEXT_PUBLIC_API_URL=http://localhost:8521/api/v1 # Production: # NEXT_PUBLIC_API_URL=https://api-dev.gohorsejobs.com/api/v1 +# Seeder API URL (for admin operations) +NEXT_PUBLIC_SEEDER_API_URL=http://localhost:3001 + +# Production: +# NEXT_PUBLIC_SEEDER_API_URL=https://seeder-dev.gohorsejobs.com + # Vercel Analytics (optional) NEXT_PUBLIC_VERCEL_ANALYTICS=false + diff --git a/frontend/.gitignore b/frontend/.gitignore index 4f7e0a5..a3f8abc 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -31,8 +31,8 @@ yarn-error.log* .pnpm-debug.log* # env files (keep .env.example for documentation) -.env* -!.env.example +#.env* +#!.env.example # vercel .vercel diff --git a/job-scraper-multisite/.env.example b/job-scraper-multisite/.env.example new file mode 100644 index 0000000..1478338 --- /dev/null +++ b/job-scraper-multisite/.env.example @@ -0,0 +1,20 @@ +# ============================================================================= +# GoHorse Jobs Scraper - Environment Variables Example +# ============================================================================= +# Copy this file to .env and update the values + +# Output Configuration +OUTPUT_DIR=./output +OUTPUT_FORMAT=csv + +# API Configuration (to send scraped data to backend) +BACKEND_API_URL=http://localhost:8521/api/v1 +API_TOKEN=your-api-token-here + +# Scraping Configuration +SCRAPE_DELAY_SECONDS=2 +MAX_PAGES_PER_SITE=10 +USER_AGENT=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 + +# Logging +LOG_LEVEL=INFO diff --git a/job-scraper-multisite/.gitignore b/job-scraper-multisite/.gitignore index 08676c4..1384c0a 100644 --- a/job-scraper-multisite/.gitignore +++ b/job-scraper-multisite/.gitignore @@ -14,6 +14,7 @@ output/*.csv # Environment .env .env.* +!.env.example # IDE .idea/ diff --git a/seeder-api/.env.example b/seeder-api/.env.example index 367cdf5..77aea58 100644 --- a/seeder-api/.env.example +++ b/seeder-api/.env.example @@ -1,5 +1,19 @@ +# ============================================================================= +# GoHorse Jobs Seeder API - Environment Variables Example +# ============================================================================= +# Copy this file to .env and update the values + +# Database Configuration DB_HOST=localhost DB_PORT=5432 DB_USER=postgres DB_PASSWORD=yourpassword DB_NAME=gohorsejobs +DB_SSLMODE=disable + +# Server Configuration +PORT=3001 +NODE_ENV=development + +# Backend API URL (to sync data) +BACKEND_API_URL=http://localhost:8521/api/v1