I decide to use pipenv https://docs.python-guide.org/dev/virtualenvs/.
1. Install python3
2. Install pipenv
- pip3 install pipenv
3. pipenv shell
4. Install required dependencies
pipenv install
5. Start the server on localhost:
python3 application.py
1. Install MySql
2. Create database 'comments'
3. Create user 'microservice'
4. test database connection with:
http://localhost:5000/database
export FLASK_APP=run.py
flask init-db
coverage run -m pytest test
coverage report --include="app/*"