Skip to content

JonathanDoanePhD/Python_Flask_Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Python_Flask_Docker

REQUIREMENTS

Python 3.10.1

numpy 1.21.6

Flask 2.1.3

Jupyter Lab

Docker Desktop App

DIRECTORY

Desktop/Python/GitHub/Fetch_Rewards/

FILES

static/css/style.css (Sets fonts and colors on the Flask app webpage.)

templates/home.html (Defines the Flask app webpage and enables the Python code to be run.)

api.py (The Python code to be run.)

cmdFR.txt (The commands to run in the command line, with the first line to find the correct directory.)

Dockerfile (Defines a copy of Python 3.10.1's running environment on your local machine.)

Fetch_Rewards_Coding_Assessment-Machine_Learning_Engineer.ipynb (Jupyter Notebook describing the details of this coding assessment, along with my solution including comments.)

README.txt (Describes this project!)

requirements.txt (Outlines the requirements for the Docker container.)

HOW TO USE:

  1. Clone this GitHub repository using your preferred method.

  2. View Fetch_Rewards_Coding_Assessment-Machine_Learning_Engineer.ipynb for the full challenge and solution.

  3. !IMPORTANT! Update the first line of cmdFR.txt with your specific directory.

  4. Open command line/PowerShell and one-by-one run the commands from cmdFR.txt.

  5. Copy the first https:// link displayed in the command line.

  6. WELCOME to the Flask app webpage! Here you can test my solution.

  7. From the Docker Desktop App, delete the flaskapi container, then delete the flaskapi image.

RESOURCES I USED:

Build a Web App using Python’s Flask — For Beginners https://medium.com/@pemagrg/build-a-web-app-using-pythons-flask-for-beginners-f28315256893

Deploy Flask API Server in a Docker Container https://www.youtube.com/watch?v=j2KHUcHE9sA

About

Deployed an API which can scale (x,y)-coordinates in a plane. The dependencies for this program come in a Docker container, and the web service is hosted via Flask.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors