GithubHelp home page GithubHelp logo

stealth-startup-'s Introduction

Python service using Flask that acts as a geometry engine.

Instructions to Run the Service Locally

Clone the Repository:

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:

virtualenv venv or

python -m venv venv

Activate the Virtual Environment: Activate the virtual environment:

On Windows:

venv\Scripts\activate

On macOS and Linux:

source venv/bin/activate

Install Dependencies: Install Flask if you haven't already installed it:

pip install -r requirements.txt

Run the Flask Application: Run the Flask application:

python app.py

Access the Endpoints: Once the Flask application is running, you can access the endpoints using tools like Postman or by sending HTTP requests programmatically.

To run the application if everything has been setup (running locally):

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.

To run the Docker container, Just run the following commands inside the directory

docker build -t flask-app .

docker run -p 5000:5000 flask-app

Python service using Flask that acts as a geometry engine.

stealth-startup-'s People

Contributors

amuyakkala avatar

Watchers

 avatar

Forkers

davejaydeep

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.