From 2fe51568e5e837bd44cae25c31a3eff30fce099c Mon Sep 17 00:00:00 2001 From: Mimi Momo Date: Sun, 20 Sep 2020 11:55:53 -0500 Subject: [PATCH] hello world; requirements.txt; gitignore --- .gitignore | 1 + requirements.txt | 1 + src/hello.py | 7 +++++++ src/index.py | 7 +++++++ 4 files changed, 16 insertions(+) create mode 100644 .gitignore create mode 100644 requirements.txt create mode 100644 src/hello.py create mode 100644 src/index.py 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)