Commit 19cd734c authored by I.K Seneviratne's avatar I.K Seneviratne

Update README.md

parent ecabf350
...@@ -138,9 +138,31 @@ The following software tools needed to be installed before running this project ...@@ -138,9 +138,31 @@ The following software tools needed to be installed before running this project
To run this project, you will need to follow the given steps. To run this project, you will need to follow the given steps.
1. Clone the repository to a desired location in your machine. 1. Clone the repository to a desired location in your machine.
2. To download the classifiers, visit [here]() 2. In this location, open the command line and create a virtual environment by typing *conda create -n <ENV_NAME>*. (if this command does not work, type *CALL conda.bat create -n <ENV_NAME>*)
3. Once the classifiers are downloaded, include them in each application folder. 3. To download all the dependencies, run the command *pip install -r requirements.txt*.
4. 4. To download the classifiers, visit [here](https://drive.google.com/drive/folders/1xIZfX47owHUXYqN13hchQ4waVW5UE5rp?usp=sharing)
5. Once the classifiers are downloaded, include them in the application folders as follows.
* Create a folder named *classifiers* inside the *FirstApp* folder.
* From the downloaded classifiers, include the content in *monitoring_student_behavior* folder inside this *classifiers* folder.
* Create a folder named *models* inside the *MonitorLecturerApp* folder.
* From the downloaded classifiers, include the content in *monitoring_lecturer_behavior* folder inside this *models* folder.
6. To download the static content of the project, visit [here](https://drive.google.com/drive/folders/1CtoRFxXRThE9vhsP2b0xJXhUTyPh8kN-?usp=sharing)
7. Once the static content is downloaded, include them in the project folder as follows.
* Create a folder named *static* inside the project root folder.
* Put the static content inside this folder.
* Then open a command line in the project root folder and type *python manage.py collectstatic*. This will create another folder named *assets* inside the root folder.
8. Now open this project in the PyCharm IDE.
9. Before running the project, the url of the database needs to be configured. The steps are as follows.
* Go to *integrated_slpes/settings.py* file and locate the *DATABASES* variable.
* Inside the variable named *default*, copy the value under the variable *HOST*.
* Then in the left sidebar, select the *project* tab and from the dropdown the upper right corner, select the option *project*.
* Now select the *External libraries* section and your set of Python libraries.
* Go to *site-packages* folder and find the library named *pymongo*.
* From this library, open a file named *mongo_client.py* in the IDE.
* In this file, there is a variable named *HOST* inside the *MongoClient* class. Now the replace the value in this variable with the copied url value.
* Then go back to the terminal and type the command *python manage.py runserver*. The server will be opened in the address *127.0.0.1:8000*.
### Dependencies ### Dependencies
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment