legal-ai-assistant/scripts/install.sh
2026-05-29 14:04:54 +02:00

20 lines
530 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