Skip to content

ludenus/pong-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pong-py

A simple http echo server written in python

how to run locally

run:

poetry shell

python pong_py/main.py

# you should see

 * Running on https://127.0.0.1:8080

from another console:

curl  https://127.0.0.1:8080/ping/111
{"pong":"111"}

how to build docker image

$ docker build --no-cache -t pong-py:local .

how to run docker image

$ docker run -d -name pong-py -p 9090:8080 -e PONG_LISTENING_ADDRESS=0.0.0.0:8080 pong-py:local

# note the port 9090 !

$ curl  https://127.0.0.1:9090/ping/1235   
{"pong":"1235"}

About

A simple http echo server written in python

Resources

Stars

Watchers

Forks

Packages

No packages published