Files
meal-prep-vibecoded/start.sh
2025-10-25 15:40:28 +02:00

50 lines
1002 B
Bash
Executable File

#!/bin/bash
# Meal Prep Planner - Quick Start Script
set -e
echo "🍽️ Meal Prep Planner - Setup & Start"
echo "======================================"
echo ""
# Check if Go is installed
if ! command -v go &> /dev/null
then
echo "❌ Go is not installed!"
echo ""
echo "Please install Go first:"
echo " macOS: brew install go"
echo " Linux: https://go.dev/doc/install"
echo " Windows: https://go.dev/dl/"
exit 1
fi
echo "✅ Go is installed: $(go version)"
echo ""
# Install dependencies
echo "📦 Installing dependencies..."
go mod tidy
go mod download
echo "✅ Dependencies installed"
echo ""
# Build the application
echo "🔨 Building application..."
go build -o mealprep main.go
echo "✅ Build complete"
echo ""
# Start the server
echo "🚀 Starting server..."
echo ""
echo " Access the application at: http://localhost:8080"
echo ""
echo " Press Ctrl+C to stop the server"
echo ""
echo "======================================"
echo ""
./mealprep