This directory contains utility scripts for various operations in the TourGuideAI project.
- deploy-mvp.sh - Optimized MVP deployment with security checks, test validation, and multi-platform support (Railway, Vercel, Heroku)
- Usage:
./scripts/deploy-mvp.sh [platform] [environment] - Example:
./scripts/deploy-mvp.sh railway production
- Usage:
- deploy-to-cdn.js - Deploys static assets to CDN
- Usage:
node scripts/deploy-to-cdn.js [--dry-run] [--invalidate-all]
- Usage:
- run-all-tests.ps1 - PowerShell script that runs all frontend and backend tests
- run-all-tests.sh - Bash script that runs all frontend and backend tests
- run-load-tests.sh - Runs load testing for performance evaluation
- run-travel-planning-tests.sh - Runs scenario-based tests for travel planning features
- run-security-audit.js - Performs security audit on the codebase
- run-stability-tests.js - Tests application stability under various conditions
- run-user-journeys.js - Runs end-to-end user journey tests
- generate-test-report.js - Generates consolidated test reports
- run-analytics-tests.ps1 - PowerShell script for testing analytics features
- Note: The older
run_analytics_tests.ps1is kept for backward compatibility
- Note: The older
- run-syncservice-test.ps1 - PowerShell script for testing sync services
- Note: The older
run_syncservice_test.ps1is kept for backward compatibility
- Note: The older
- run-frontend-tests.ps1 - Located in
/tests/directory, runs all frontend tests - run-server-tests.ps1 - Runs all server tests from
/server/tests/directory
- deploy.sh - Builds the frontend and starts the server in production mode
- Usage:
./deploy.sh
- Usage:
- generate-keys.js - Generates cryptographic keys for the application
- fix-jest-config.js - Fixes Jest configuration issues
Most scripts can be run directly from the scripts directory. For example:
# Run MVP deployment from project root
./scripts/deploy-mvp.sh railway production
# Or for CDN deployment
node scripts/deploy-to-cdn.jsFor JavaScript scripts, use Node.js:
node scripts/generate-keys.jsFor PowerShell scripts (Windows):
.\scripts\run-all-tests.ps1The scripts reference test files in the following locations:
- Server tests:
/server/tests/*.test.js - Frontend tests:
/src/tests/*/*.test.js - User journey tests:
/tests/user-journey/*.spec.ts - Integration tests:
/tests/integration/
- Some test scripts store results in the
docs/project_lifecycle/all_tests/results/directory - For cross-platform use, both
.ps1and.shversions of critical scripts are provided - Script naming convention uses hyphens (
run-analytics-tests.ps1), though some older scripts with underscores are maintained for backward compatibility