- Student 1. Huong Nguyen (Huong.Nguyen@oulu.fi)
- Student 2. Vandana Yadav (vandana.mj24@gmail.com)
You can install the required packages inside your Anaconda or any virtual environments or even directly on your machine using pip command
# Python version: 3.7.6
pip install -r requirements.txt
-
Open terminal / command prompt
-
Clone the project
git clone https://github.com/tuminguyen/PWP
or directly download the deliverable5 package.
-
By default, the scripts are executable. However, in case of needed, you can make them doable by running the command
# On Linux chmod +x run.sh chmod +x delete_db.sh
For Windows users, follow this tuitorial to change the permission to the files.
-
If db/ folder does not exist in the project, create the new one before running the program. Otherwise, skip this step.
mkdir db
-
Run the program
Please populate the database ONCE at the first time you run the program.
# On Linux ./run.sh -p true
For the next time you run the program, run it with the populate mode set to false. Otherwise, data might be duplicated and violate the UNIQUE constraint.
# On Linux ./run.sh -p false
-
Open your browser and access 127.0.0.1:5000
-
Delete all tables and database whenever you want by executing
# On Linux ./delete_db.sh
!! NOTE: The instruction is written for users with Linux-based systems. However, if you are a Windows users, you can also follow the same commands after installing cygwin or git-bash.
There are test files for resources and models. To run the tests, use the below command
# On Linux / Windows
pytest
After running, you will see the number of passed cases, warning and test coverage value.