From aa2e5e6cada6baefc8ab950c95ff336eb18eb561 Mon Sep 17 00:00:00 2001 From: Jamie Weatherby Date: Wed, 28 Feb 2024 22:10:35 -0500 Subject: [PATCH] Update default port to 5001 --- CONTRIBUTIONS.md | 2 +- Dockerfile | 4 ++-- Pipfile.lock | 2 +- README.md | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTIONS.md b/CONTRIBUTIONS.md index 087253c..2f0307a 100644 --- a/CONTRIBUTIONS.md +++ b/CONTRIBUTIONS.md @@ -9,5 +9,5 @@ To run it locally for development purposes, it runs like a typical flask app: ```python export FLASK_APP=app:app flask run [--reload] -# navigate to 127.0.0.1:5000 +# navigate to 127.0.0.1:5001 ``` diff --git a/Dockerfile b/Dockerfile index 5d2806e..a48134c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,6 @@ ADD . /app RUN pipenv install --ignore-pipfile --system --deploy RUN python generate-instructions.py -EXPOSE 5000 +EXPOSE 5001 -CMD gunicorn wsgi:app -w 2 -b :5000 +CMD gunicorn wsgi:app -w 2 -b :5001 diff --git a/Pipfile.lock b/Pipfile.lock index 8a5d822..747ab29 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -33,7 +33,7 @@ "version": "==2.2.3" }, "flask-cors": { - "hashes": [ + "hashes": [ "sha256:74efc975af1194fc7891ff5cd85b0f7478be4f7f59fe158102e91abb72bb4438", "sha256:b60839393f3b84a0f3746f6cdca56c1ad7426aa738b70d6c61375857823181de" ], diff --git a/README.md b/README.md index f749599..52de5ae 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ The application should have a very basic UI with a form that accepts two inputs: ### Sample Request -Please find a sample request at [/tax-calculator/](http://localhost:5000/tax-calculator/), +Please find a sample request at [/tax-calculator/](http://localhost:5001/tax-calculator/), which contains a reliable API endpoint and can be used for test and development purposes. It returns the following JSON response: @@ -115,12 +115,12 @@ In order to run the API locally, please follow these instructions: ```bash docker pull ptsdocker16/interview-test-server -docker run --init -p 5000:5000 -it ptsdocker16/interview-test-server +docker run --init -p 5001:5001 -it ptsdocker16/interview-test-server ``` -Navigate to [http://localhost:5000](http://localhost:5000). You should be greeted with this set of instructions, and access to the different available endpoints. The following are the relevant endpoints: +Navigate to [http://localhost:5001](http://localhost:5001). You should be greeted with this set of instructions, and access to the different available endpoints. The following are the relevant endpoints: -* [/tax-calculator/](http://localhost:5000/tax-calculator/) - endpoint to develop against +* [/tax-calculator/](http://localhost:5001/tax-calculator/) - endpoint to develop against * [/tax-calculator/tax-year/2022](/tax-calculator/tax-year/2022) - endpoint you'll be assessed against If you have any problems or need any sort of clarification, email the engineering hiring manager for assistance.