sudo apt install python3-pip python3-virtualenv python3-venv
Create a venv
python3 -m venv .venv
source .venv/bin/activate
pip install flask flask-restful flask-mongoengine
Verify libs from venv
pip freeze
pip freeze > requirements.txt
flask run # to flask
python app.py # to restful
Install the lib
sudp pip install flake8
Using
flake8 . --exclude .venv
Now remove the infos that it return to solve, and push again to repository.
Access the mongodb container
docker exec -it id-container sh
mongo -u admin
> show dbs
> use admin
> show collections
> exit