noteJS-react/install.sh

37 lines
932 B
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# Скрипт для установки всех зависимостей NoteJS React
echo "📦 Установка зависимостей NoteJS React..."
echo ""
# Установка зависимостей фронтенда
echo "1⃣ Установка зависимостей фронтенда..."
npm install
if [ $? -ne 0 ]; then
echo "❌ Ошибка установки зависимостей фронтенда"
exit 1
fi
echo ""
echo "2⃣ Установка зависимостей бэкенда..."
cd backend
npm install
if [ $? -ne 0 ]; then
echo "❌ Ошибка установки зависимостей бэкенда"
exit 1
fi
cd ..
echo ""
echo "✅ Все зависимости успешно установлены!"
echo ""
echo "Для запуска приложения выполните:"
echo " npm start"
echo "или"
echo " ./start.sh"