chore: add complete .env.example files for all services
- frontend/.env.example: Add SEEDER_API_URL - seeder-api/.env.example: Expand with server config and backend URL - job-scraper-multisite/.env.example: New file with scraping config - Update gitignore files to allow .env.example tracking
This commit is contained in:
parent
dc1a63a3fc
commit
ddc4e2c2bf
5 changed files with 44 additions and 2 deletions
|
|
@ -11,5 +11,12 @@ NEXT_PUBLIC_API_URL=http://localhost:8521/api/v1
|
||||||
# Production:
|
# Production:
|
||||||
# NEXT_PUBLIC_API_URL=https://api-dev.gohorsejobs.com/api/v1
|
# 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)
|
# Vercel Analytics (optional)
|
||||||
NEXT_PUBLIC_VERCEL_ANALYTICS=false
|
NEXT_PUBLIC_VERCEL_ANALYTICS=false
|
||||||
|
|
||||||
|
|
|
||||||
4
frontend/.gitignore
vendored
4
frontend/.gitignore
vendored
|
|
@ -31,8 +31,8 @@ yarn-error.log*
|
||||||
.pnpm-debug.log*
|
.pnpm-debug.log*
|
||||||
|
|
||||||
# env files (keep .env.example for documentation)
|
# env files (keep .env.example for documentation)
|
||||||
.env*
|
#.env*
|
||||||
!.env.example
|
#!.env.example
|
||||||
|
|
||||||
# vercel
|
# vercel
|
||||||
.vercel
|
.vercel
|
||||||
|
|
|
||||||
20
job-scraper-multisite/.env.example
Normal file
20
job-scraper-multisite/.env.example
Normal file
|
|
@ -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
|
||||||
1
job-scraper-multisite/.gitignore
vendored
1
job-scraper-multisite/.gitignore
vendored
|
|
@ -14,6 +14,7 @@ output/*.csv
|
||||||
# Environment
|
# Environment
|
||||||
.env
|
.env
|
||||||
.env.*
|
.env.*
|
||||||
|
!.env.example
|
||||||
|
|
||||||
# IDE
|
# IDE
|
||||||
.idea/
|
.idea/
|
||||||
|
|
|
||||||
|
|
@ -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_HOST=localhost
|
||||||
DB_PORT=5432
|
DB_PORT=5432
|
||||||
DB_USER=postgres
|
DB_USER=postgres
|
||||||
DB_PASSWORD=yourpassword
|
DB_PASSWORD=yourpassword
|
||||||
DB_NAME=gohorsejobs
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue