legal-ai-assistant/scripts/install.sh

21 lines
531 B
Bash

#!/bin/bash
#########################################################
# Creating a virtual environment and installing
# libraries for the project.
#
# If it exists, the script will stop working.
#########################################################
set -e
cd "$(dirname "$0")/.."
if [[ -d "venv" ]]; then
echo "Virtual environment already exist!"
else
python -m venv venv
source venv/Scripts/activate
pip install -e ".[dev,backend,frontend,mcp]"
echo "Venv create and all libraries installed!"
fi