Skip to content

triv321/flask-add-miniproject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Production Ready Dockerized Flask API

Run with Docker

'''bash docker build -t flask-api-prod . docker run -p 5000:5000 flask-api-prod

Run with Docker Compose

docker compose up --build

Test

In another terminal, run:

curl.exe -X POST http://localhost:5000/add -H "Content-Type: application/json" -d "{"num1":x,"num2":y}"

where x and y are real numbers

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published