creating a server side web app
TRANSCRIPT
Celebrememe Looked Like This:
Flask Server
Twitter API
What did Kanye Say?
Here are Kanye’s last 20 tweets
#yeezyboost.
Client
Flask Server
Twitter API
What did Kanye Say?
Here are Kanye’s last 20 tweets
#yeezyboost.
Client
We spent our whole time talking about this interaction.
● Flask is a web framework. It provides you with the tools, libraries and technologies that allow you to build a web application.
● Flask is a micro-framework.
We want to build a dynamic site.
How Do These Things Work?
1. User lands on a URL. Server, (Flask), finds which function is associated with that URL
2. Function is run3. Function passes info to template HTML file4. Template HTML file renders data and
displays the page
1) Flask finds URL associated with function
2)Function is run
3) Function passes variables to HTML file
www.placeful.com/messages/73.1/75.1
It scans our HTML file, finds the template tags, for example {{ message.text }}, and inserts the variables from our server side web app.