Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 45 additions & 30 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 47 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash

# Go Game Setup Script
# This script installs all necessary packages and dependencies

set -e

echo "🚀 Setting up Go Game project..."

# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo "❌ Node.js is not installed"
echo "Please install Node.js first:"
echo " - Visit https://nodejs.org/"
echo " - Or use nvm: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash"
exit 1
fi

# Check if npm is installed
if ! command -v npm &> /dev/null; then
echo "❌ npm is not installed"
echo "Please install npm (usually comes with Node.js)"
exit 1
fi

echo "✅ Node.js $(node --version) found"
echo "✅ npm $(npm --version) found"

# Install dependencies
echo "📦 Installing npm dependencies..."
npm install

# Install Playwright browsers (for testing)
echo "🎭 Installing Playwright browsers..."
npx playwright install

echo ""
echo "🎉 Setup complete!"
echo ""
echo "Available commands:"
echo " npm run dev - Start development server"
echo " npm run build - Build for production"
echo " npm run preview - Preview production build"
echo " npm run test - Run tests"
echo ""
echo "To get started:"
echo " npm run dev"