From 53cbc6e117f87e7ce901cf7303474fe12c0617da Mon Sep 17 00:00:00 2001 From: AlexeyDer Date: Thu, 23 Apr 2020 13:22:07 +0700 Subject: [PATCH] Add information about program in README.md --- server-example/README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 server-example/README.md diff --git a/server-example/README.md b/server-example/README.md new file mode 100644 index 0000000..7dba5e3 --- /dev/null +++ b/server-example/README.md @@ -0,0 +1,26 @@ +## Simple Server + +### Installing + +Before running, it is **recommended** to install the versions of packages that were used when writing this code: + +```sh +pip install -r requirements.txt +``` + +And if you don't have installed flask yet: + +```sh +apt install python3-flask +``` + +### Running + +You must inform the environment variable FLASK_APP and then run: + +```sh +export FLASK_APP=hello.py +flask run +``` + + * Running on http://127.0.0.1:5000/ \ No newline at end of file