Files
claude-hub/scripts/setup/setup.sh
Jonathan Flatt 4cdad828c4 Reorganize scripts into structured directory layout and consolidate functionality
This commit reorganizes all scripts in the repository into a more structured directory layout for better maintainability:
- Categorizes scripts by functionality (setup, build, aws, runtime, security, utils)
- Organizes test scripts into logical categories
- Consolidates redundant scripts with unified interfaces
- Adds backward compatibility wrappers
- Adds detailed SCRIPTS.md documentation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-21 00:19:07 +00:00

24 lines
625 B
Bash
Executable File

#!/bin/bash
set -e
# Create required directories
mkdir -p logs
# Copy environment file if it doesn't exist
if [ ! -f .env ]; then
cp .env.example .env
echo "Created .env file. Please update it with your actual values."
else
echo ".env file already exists."
fi
# Install dependencies
npm install
# Set up pre-commit hooks (for development)
npm run setup:dev
echo "Setup complete! Update your .env file with your GitHub token, webhook secret, and Claude API key."
echo "Pre-commit hooks for credential scanning have been installed."
echo "Then start the server with: npm start"
echo "Or for development: npm run dev"