Before running, make sure that you have Python 3.6+ and node 18.x or later installed.
To run locally:
- Go to the root project and open up 2 terminal windows
- In the first one, create a virtual Python environment by running the following commands:
python3 -m venv .venv
. .venv/bin/activate
- On that same terminal, with the virutal environment activated, install the dependecies by running the following command:
pip install -r requirements.txt
- The last step on the first terminal is to run the app by running the following command:
flask --app dagData run
If you get an error, try running deactivate
, activate the environment again, and run the Flask app again.
5. In the second terminal, run npm install
and then the following command:
http-server -p 8080
-
Go to http://localhost:8080/hello to see the app
-
(Optional) If you want to play with a different DAG, create your own by editing the
dagData.py
file