Repository creates for fast running development process with configuration for Flask framework, which are the same from project to project.
...
- Check you have Python 3.7 installed by typing on commandline
python --version
- Install environment
pip install virtualenv
virtualenv venv
CALL venv/Scripts/activate (on Windows)
source venv/bin/activate (on Linux)
pip install -r requirements.txt
- Run server
python manage.py runserver
- Point your web browser to http://localhost:5000/
docker build -t flask-template:latest .
docker run -d -p 5000:5000 flask-template:latest
- Run
pycodestyle --exclude=venv,flask_inject.py,container.py --max-line-length=120 .
- Run
pytest
- Aleksandr Seliutin - selutin99
Please, follow Contributing page.
Please, follow Code of Conduct page.
This project is Apache License 2.0 - see the LICENSE file for details
This template uses the flask_inject
module to implement a dependency injection container.
It is assumed that the services you create will be added to the container manually,
and your routes will inject services from the context.