Skip to main content

Scripts Documentation

The scripts/ directory contains shell scripts to automate setup, development, and deployment tasks for the AI content reporpuser project.

Available Scripts

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