always remember to create a server.py flask-server file.
Runs the flask-server, use this command in the project directory.
Open http://localhost:5000 to view it on your browser. Or add the flask-server proxy to your project. example: "proxy": "http://localhost:5000"
If you need to check the flask documentations, you can access it here: https://flask.palletsprojects.com/en/3.0.x/
Video that helped me create this flask-server: https://www.youtube.com/watch?v=6r_QBgq-seA
obs, i needed to adapt it to my project