Files
claude-hub/scripts/setup.sh
Jonathan Flatt fc567071dd Initial commit
2025-05-20 17:01:59 +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"