Skip to content

netology-code/shvirtd-example-python

Repository files navigation

shvirtd-example-python

Example Flask-application for docker compose training.

Installation

First, you need to clone this repository:

git clone https://github.com/netology-code/shvirtd-example-python.git

Now, we will need to create a virtual environment and install all the dependencies:

python3 -m venv venv  # on Windows, use "python -m venv venv" instead
. venv/bin/activate   # on Windows, use "venv\Scripts\activate" instead
pip install -r requirements.txt
python main.py

You need to run Mysql database and provide following ENV-variables for connection:

  • DB_HOST (default: '127.0.0.1')
  • DB_USER (default: 'app')
  • DB_PASSWORD (default: 'very_strong')
  • DB_NAME (default: 'example')

The applications will always running on http://localhost:5000.
To exit venv just type deactivate

License

This project is licensed under the MIT License (see the LICENSE file for details).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages