Scripts Documentation
The scripts/ directory contains shell scripts to automate setup, development, and deployment tasks for the AI content reporpuser project.
Available Scripts
- setup-backend.sh - Backend environment setup
- setup-frontend.sh - Frontend environment setup
- start-backend.sh - Start backend server only
- start-frontend.sh - Start frontend app only
- start-dev.sh - Start both backend and frontend in development mode
- build-production.sh - Build production-ready artifacts
- update-branding.sh - Update branding across the project
Quick Reference
First-Time Setup
cd scripts
# Setup backend (install deps, build)
./setup-backend.sh
# Setup frontend (install deps)
./setup-frontend.sh
Development
cd scripts
# Start everything (recommended)
./start-dev.sh
# Or start individually
./start-backend.sh # Backend only
./start-frontend.sh # Frontend only
Production
cd scripts
# Build for Linux (default)
./build-production.sh
# Build for other platforms
./build-production.sh macos
./build-production.sh windows
./build-production.sh android
Permission Issues
If you get "Permission denied" errors, make scripts executable:
cd scripts
chmod +x *.sh
Script Overview
All scripts follow these conventions:
- Location: Must be run from the
scripts/directory - Exit on error: Stop immediately if any command fails
- Color output: Use green for success, red for errors, yellow for warnings
- Validation: Check prerequisites before running