From 42c9a0276e4fe1ed2c3c7c33cf341d8e7c1a3b73 Mon Sep 17 00:00:00 2001 From: Kelsey Schmidt Date: Sat, 26 Nov 2022 23:14:45 -0600 Subject: [PATCH] Updated sample program in README --- README.rst | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 126e2003..f9b1061a 100644 --- a/README.rst +++ b/README.rst @@ -20,7 +20,7 @@ community that make adding new functionality easy. Installing ---------- -Install and update using `pip`_: +In a terminal, install or update Flask using `pip`_: .. code-block:: text @@ -32,6 +32,10 @@ Install and update using `pip`_: A Simple Example ---------------- +In a code editor or IDE of your choice, create a new file: app.py + +Copy and paste the following code snippet into the app.py file. + .. code-block:: python # save this as app.py @@ -43,10 +47,21 @@ A Simple Example def hello(): return "Hello, World!" +Save your file. + +To execute the program, run the following command in a terminal: + .. code-block:: text $ flask run - * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) + +You will receive the following message: + +.. code-block:: text + + * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) + +You can open this address in an internet browser window to view your program. Contributing