Skip to content

This is Beginners Friendly Flask Application which does the basic arithmetic operations (+,-,*,/)

License

Notifications You must be signed in to change notification settings

shanmugavelsubramani/Flask-Calculator-Beginner-Docker

 
 

Repository files navigation

Flask-Calculator-Beginner

This is Beginners Friendly Flask Application which does the basic arithmetic operations (+,-,*,/)

Visit the Docker Hub to see more containers

Pull the docker Image

docker pull santhoshkdhana/flask-calculator-beginner:latest

Start the container

docker container run -d -p 5000:5000 --name=santyflask flask-calculator-beginner

Flask Calculator

The container will expose port 5000

API

POST - /add

POST - /subtract

POST- /multiply

POST- /division

send POST request to the endpoints with a JSON in the body

x is the first variable

y is the second variable

Sample JSON:

{
    "x":193,
    "y":657
}

Sample Response:

{
    "Message": -464,
    "Status Code": 200
}

About

This is Beginners Friendly Flask Application which does the basic arithmetic operations (+,-,*,/)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.2%
  • Dockerfile 2.8%