commit 2fe51568e5e837bd44cae25c31a3eff30fce099c Author: Mimi Momo Date: Sun Sep 20 11:55:53 2020 -0500 hello world; requirements.txt; gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f7275bb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +venv/ diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..310dc0b --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +bottle diff --git a/src/hello.py b/src/hello.py new file mode 100644 index 0000000..c5c6a73 --- /dev/null +++ b/src/hello.py @@ -0,0 +1,7 @@ +from bottle import route, run + +@route('/hello') +def hello(): + return "Hello World!" + +run(host='localhost', port=8080, debug=True) diff --git a/src/index.py b/src/index.py new file mode 100644 index 0000000..c5c6a73 --- /dev/null +++ b/src/index.py @@ -0,0 +1,7 @@ +from bottle import route, run + +@route('/hello') +def hello(): + return "Hello World!" + +run(host='localhost', port=8080, debug=True)