This commit is contained in:
2025-09-25 08:35:23 +04:00
parent db42d71461
commit db20ccaf5f
95 changed files with 14153 additions and 0 deletions

37
start.sh Executable file
View File

@@ -0,0 +1,37 @@
#!/bin/bash
# Display welcome message
echo "==================================================="
echo "Mycelium Society Website - Start Script"
echo "==================================================="
echo "This script will start the development server for the Mycelium Society website."
echo ""
# Check if pnpm is installed
if ! command -v pnpm &> /dev/null; then
echo "pnpm is not installed. Please run ./install.sh first."
exit 1
fi
# Check if node_modules exists
if [ ! -d "node_modules" ]; then
echo "Dependencies not installed. Running installation script..."
./install.sh
if [ $? -ne 0 ]; then
echo "Installation failed. Please check the error messages above."
exit 1
fi
fi
# Start development server
echo "Starting development server..."
echo "The website will be available at http://localhost:5173"
echo ""
echo "Press Ctrl+C to stop the server."
echo "==================================================="
pnpm run dev -- --host
# This script will not reach here unless the server is stopped
echo ""
echo "Development server stopped."