base feature
This commit is contained in:
49
start.sh
Executable file
49
start.sh
Executable 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
|
||||
Reference in New Issue
Block a user