git clone git@github.com:schagsim/image_finder.git C:\path\to\project\folder
Install Python 3.9.4
- You can use Miniconda to manage Python versions
- You can also download multiple Python versions and use the specific
python.exe
for 3.9.4
Make sure your Python is a correct version
> python --version
Python 3.9.4
Using the Python 3.9.4
you installed, create virtual environment in image_finder
project.
python -m venv C:\path\to\project\folder\venv
This will create a virtual environment for our project in the project folder.
Activate the virtulan environment
C:\path\to\project\folder\venv\Scripts\activate
Install requirements for the project
python -m pip install -r .\requirements.txt
Install docker on you local machine.
Go to web app folder C:\path\to\project\folder\image_finder_web
Build the docker image
docker build -t image_finder_web .
Run the docker image
docker run -d --name image_finder_web_container -p 5000:5000 image_finder_web
To stop the docker container, use following command
docker kill image_finder_web_container
Go to web app folder C:\path\to\project\folder\image_finder_web
python -m flask run
Both for Docker and no-Docker run, you can now go to http://localhost:5000/
(this address might get outdated eventually) and see the web.