diff --git a/README.md b/README.md index 1954e4a..696b8e1 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@
-## Table of Content +## Table of Contents - [Installation](#installation) @@ -27,6 +27,7 @@ - [URL Variables](#url-variables) - [Redirection](#redirection) - [Message Flashing](#message-flashing) +- [How to Run](#how-to-run)
@@ -145,7 +146,7 @@ if __name__=="__main__": ``` -> Modern web applications use meaningful URLs to help users. Users are more likely to like a page and come back if the page uses a meaningful URL they can remember and use to directly visit a page. +> Modern web applications use meaningful URLs to help users. Users are more likely to like a page and come back if the page uses a meaningful URL they can remember and use to directly visit a page. > Use the `route()` decorator to bind a function to a URL. @@ -164,7 +165,7 @@ app = Flask(__name__) def index(): return render_template('index.html') -@app.route("/") +@app.route("/about") def about(): return render_template('about.html') @@ -343,6 +344,14 @@ if __name__=="__main__": app.run(debug=True) ``` - +## How to Run the Project + +```bash +git clone https://github.com/sid86-dev/flask-tutorial.git +cd flask-tutorial +pip install flask +python app.py +Then open: +http://127.0.0.1:5000/ > Good applications and user interfaces are all about feedback. If the user does not get enough feedback they will probably end up hating the application. Flask provides a really simple way to give feedback to a user with the flashing system. The flashing system basically makes it possible to record a message at the end of a request and access it next request and only next request. This is usually combined with a layout template that does this. Note that browsers and sometimes web servers enforce a limit on cookie sizes. This means that flashing messages that are too large for session cookies causes message flashing to fail silently.