First commit - es tut schon mal ganz gut
This commit is contained in:
42
setup.sh
Executable file
42
setup.sh
Executable file
@@ -0,0 +1,42 @@
|
||||
#!/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 ""
|
||||
Reference in New Issue
Block a user