bb44b143ec
- Backend: Express.js API with MinIO CLI integration - Frontend: React with Material-UI for non-technical users - Features: Bucket management, user creation, storage monitoring - Security: JWT auth, IP filtering, encrypted passwords - Docker support for easy deployment - Automated weekly storage reports - Setup and deployment scripts included
50 lines
934 B
Bash
Executable File
50 lines
934 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Development startup script
|
|
echo "Starting MinIO WebUI in development mode..."
|
|
|
|
# Check if .env exists
|
|
if [ ! -f .env ]; then
|
|
echo "Error: .env file not found. Please run ./scripts/setup.sh first."
|
|
exit 1
|
|
fi
|
|
|
|
# Start backend in background
|
|
echo "Starting backend..."
|
|
cd backend
|
|
npm run dev &
|
|
BACKEND_PID=$!
|
|
cd ..
|
|
|
|
# Wait a moment for backend to start
|
|
sleep 2
|
|
|
|
# Start frontend
|
|
echo "Starting frontend..."
|
|
cd frontend
|
|
npm start &
|
|
FRONTEND_PID=$!
|
|
cd ..
|
|
|
|
echo ""
|
|
echo "MinIO WebUI is starting..."
|
|
echo "Backend PID: $BACKEND_PID"
|
|
echo "Frontend PID: $FRONTEND_PID"
|
|
echo ""
|
|
echo "Access the application at: http://localhost:3000"
|
|
echo "Press Ctrl+C to stop all services"
|
|
|
|
# Function to cleanup on exit
|
|
cleanup() {
|
|
echo ""
|
|
echo "Stopping services..."
|
|
kill $BACKEND_PID 2>/dev/null
|
|
kill $FRONTEND_PID 2>/dev/null
|
|
exit
|
|
}
|
|
|
|
# Set up trap to cleanup on Ctrl+C
|
|
trap cleanup INT
|
|
|
|
# Wait for processes
|
|
wait |