From 57fa3c58390ac1feb1d54fa41da5b5f83cfb6e8e Mon Sep 17 00:00:00 2001 From: Akash Mishra <80618499+helloakash1701@users.noreply.github.com> Date: Fri, 7 Jul 2023 12:18:25 +0530 Subject: [PATCH 1/3] Update README.md --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8b7eb18..a208bac 100644 --- a/README.md +++ b/README.md @@ -20,16 +20,36 @@ Requirements: Install: ```powershell +# Clone the repository git clone https://github.com/Ericsson/eva.git + +# Change to the project directory cd eva + +# Upgrade pip python -m pip install --upgrade pip + +# Install virtualenv pip install virtualenv -virtualenv venv + +# Create a virtual environment +python -m virtualenv venv + +# Activate the virtual environment (for Windows) venv\Scripts\activate.bat + +# Install project dependencies pip install -r requirements.txt + +# Prepare the tracker python manage.py preparetracker + +# Apply database migrations python manage.py migrate + +# Collect static files python manage.py collectstatic + ``` Extract ffmpeg archive and copy `ffmpeg.exe`, from the bin folder, to the root From 653f25e872e9cee409b37dc56d7c18ed4c285a63 Mon Sep 17 00:00:00 2001 From: Akash Mishra <80618499+helloakash1701@users.noreply.github.com> Date: Fri, 7 Jul 2023 12:21:58 +0530 Subject: [PATCH 2/3] Update README.md --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a208bac..0921600 100644 --- a/README.md +++ b/README.md @@ -67,16 +67,37 @@ Requirements: Install: ```bash + +# Clone the repository git clone https://github.com/Ericsson/eva.git + +# Change to the project directory cd eva + +# Install virtualenv using pip3 pip3 install virtualenv + +# Create a virtual environment python3 -m virtualenv venv -. venv/bin/activate + +# Activate the virtual environment +source venv/bin/activate + +# Upgrade pip inside the virtual environment pip install --upgrade pip + +# Install project dependencies pip install -r requirements.txt + +# Prepare the tracker python manage.py preparetracker + +# Apply database migrations python manage.py migrate + +# Collect static files python manage.py collectstatic + ``` Start the app by running the `start.sh` file. From b4def978880918f134c7f5013b28d611d2cda8fe Mon Sep 17 00:00:00 2001 From: Akash Mishra <80618499+helloakash1701@users.noreply.github.com> Date: Fri, 7 Jul 2023 12:23:24 +0530 Subject: [PATCH 3/3] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 0921600..3bfec8a 100644 --- a/README.md +++ b/README.md @@ -113,9 +113,15 @@ First run the following commands to initialize the tool. These only have to be run once, but if the tool is updated they should be repeated. ``` +# Build the Docker containers docker-compose build + +# Apply database migrations docker-compose run eva python3 manage.py migrate + +# Collect static files docker-compose run eva python3 manage.py collectstatic + ``` Start the app by running: