Clone the repository containing the Flask application to your local machine. Here Just extract the zip file and get inside the assignment-1 folder.
Navigate to the Directory: Open your terminal or command prompt and navigate to the directory (assignment-1) where the Flask application is located.
Set Up Virtual Environment: If you haven't already set up a virtual environment, create one using virtualenv or venv:
Access the Endpoints: Once the Flask application is running, you can access the endpoints using tools like Postman or by sending HTTP requests programmatically.
In one terminal activate the virtual environment and run the geometry.py file as a simple python file. python geometry.py
. This will start the flask server at localhost on port 5000(default).
In another terminal, while the geometry file is running, run the test_endpoints.py file to run the 4 tests.
If you want to check the output separately, try the POSTMAN application or cmd itself to send the post method to the endpoints and get the output for your input.
Python service using Flask that acts as a geometry engine.