base feature

This commit is contained in:
2025-10-25 15:40:28 +02:00
commit 72c50549d7
15 changed files with 2104 additions and 0 deletions

49
start.sh Executable file
View File

@@ -0,0 +1,49 @@
#!/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