Files
ausgaben-next/setup.sh

43 lines
931 B
Bash
Executable File

#!/bin/bash
# Ausgaben-Next Setup Script
echo "==================================="
echo "Ausgaben-Next Setup"
echo "==================================="
echo ""
# Check if .env exists
if [ ! -f ".env" ]; then
echo "Creating .env file from template..."
cp .env.example .env
echo "✓ .env created. Please edit it with your database credentials!"
echo ""
fi
# Install dependencies
echo "Installing dependencies..."
npm install
echo "✓ Dependencies installed"
echo ""
# Build the project
echo "Building project..."
npm run build
echo "✓ Build complete"
echo ""
echo "==================================="
echo "Setup complete!"
echo "==================================="
echo ""
echo "To start the development server:"
echo " npm run dev"
echo ""
echo "To start the production server:"
echo " npm start"
echo ""
echo "To build for Docker:"
echo " docker-compose -f docker-compose.local.yml up -d"
echo ""