Skip to content

mrbrazzi/provemyworth

Repository files navigation

How to Prove My Worth

My name is Alain Sánchez Gutiérrez (https://about.me/mr.brazzi).

I'm a Software Developer and Father, both at full time. I like self-learn and I learn quick. I enjoy teach what I learn. I believe in teamwork and help teammates when they need.

This exam was developed on Windows 10 with Python 3.6 using PyCharm 2020.1.

1. Steps to run as python module

1.1. Create virtual environment

virtualenv -p python .venv

1.2. Enable virtual environment

source .venv/bin/activate

1.3. Install requirements

pip install requirements.txt

1.4. Run the script

python -m pyw

or

python pyw.py

2. Steps to build and run as Docker's container

Requirements

2.1. Build custom Docker's image

docker-compose build

2.2. Run as Docker's container

docker-compose run

3. Steps to build and run the flask app as Docker's container

Requirements

  • Docker
  • Docker Compose
  • From root directory, edit the file ./pyw.py and in line 77 add the following code:
url = 'http://localhost:5000'

3.1 Move to flask directory

cd flask/

3.2. Build custom Docker's image

docker-compose build

3.3. Run as Docker's container

docker-compose run -d

3.4. Check if flask app is running

Open a browser and visit the following url

http://localhost:5000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published