List the contents of an Amazon S3 bucket

aws s3 ls static-webcalc-2

run server

uvicorn main:app --reload 

test:

curl -X POST \
  -H "Content-Type: application/json" \
  -d '{"content": "2+5=7"}' \
  http://localhost:10000/api/save
curl -X GET \
  http://localhost:10000/api/{short_url_id}
curl -X GET \
  http://localhost:10000/api/health

This command will overwrite reqs.txt with a list of all installed packages and their versions

pip freeze > reqs.txt

Build a Docker image named webcalc from the current directory

docker-compose build
docker buildx build -t webcalc .
docker run -d webcalc
docker ps
docker images

Build abd deploy

push to DockerHub

docker tag webcalc mytherapycoding/webcalc:1
docker login
docker push mytherapycoding/webcalc:1