Skip to content

Testing

Alberto Palacios Cabrera edited this page Feb 23, 2024 · 1 revision

Testing the project

For testing purposes, you can run the Flask project on your local machine. There are two ways to do this: on linux or on Windows environment.


Linux

To run the project on a Linux environment, you just need to run the localTest.sh file. This file will install the necessary dependencies and run the Flask project.

source localTest.sh

Windows

To run the project on a Windows environment, you just need to run the localTest.ps1 file. This file will install the necessary dependencies and run the Flask project.

.\localTest.ps1

Deactivating the virtual environment

Important

The project requires a virtual environment to run. The script will create it, but you have to deactivate it manually.

To deactivate the virtual environment, run the following command:

deactivate

This command works for both Linux and Windows environments.

Caution

It is important to deactivate the virtual environment after running the project. If you don't do this, the virtual environment will keep running and it will consume your computer's resources.

Clone this wiki locally