SlideShare une entreprise Scribd logo
1  sur  18
Télécharger pour lire hors ligne
UO WEB DEV
Big Kids Development
Creating a Robust Server Side Web App
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
Server
#yeezyboost.
Client
But what about this
whole thing?
● 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.
Django Flask
How Do These Things Work?
1. User lands on a URL. Server, (Flask), finds
which function is associated with that URL
2. Function is run
3. Function passes info to template HTML file
4. 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
4) Template HTML File
Renders Data and displays
page
Real nice. Just a little .db file that lives on your server/local
machine.
We are millennials. We shouldn’t have to write SQL.
Turns RAW SQL statements into classes in your language of
choice.
Object Relational Mapping (ORM)
But how does the code
from our server get put
into our HTML?
It scans our HTML file, finds the template tags, for example
{{ message.text }}, and inserts the variables from our server
side web app.
<p>{{messages.text}}</p>
becomes
<p>What’s happening?</p>
Creating a server side web app

Contenu connexe

Tendances

Tendances (20)

DevNet 1056 WIT Spark API and Chat Bot Workshop
DevNet 1056 WIT Spark API and Chat Bot WorkshopDevNet 1056 WIT Spark API and Chat Bot Workshop
DevNet 1056 WIT Spark API and Chat Bot Workshop
 
Gatsby Preview With Plone (Plone conference 2019)
Gatsby Preview With Plone (Plone conference 2019)Gatsby Preview With Plone (Plone conference 2019)
Gatsby Preview With Plone (Plone conference 2019)
 
2 Seconds is the New Slow - Chris Simmance - under2
2 Seconds is the New Slow -  Chris Simmance - under22 Seconds is the New Slow -  Chris Simmance - under2
2 Seconds is the New Slow - Chris Simmance - under2
 
How Le Wagon uses Trello
How Le Wagon uses TrelloHow Le Wagon uses Trello
How Le Wagon uses Trello
 
Real-time image sharing
Real-time image sharingReal-time image sharing
Real-time image sharing
 
[GeekTalk#2] Takaaki Mizuno - Api Url Design
[GeekTalk#2] Takaaki Mizuno - Api Url Design[GeekTalk#2] Takaaki Mizuno - Api Url Design
[GeekTalk#2] Takaaki Mizuno - Api Url Design
 
Real Talk About Website Performance : 5 Must-Haves
Real Talk About Website Performance : 5 Must-HavesReal Talk About Website Performance : 5 Must-Haves
Real Talk About Website Performance : 5 Must-Haves
 
Microsoft Teams community call-January 2019
Microsoft Teams community call-January 2019Microsoft Teams community call-January 2019
Microsoft Teams community call-January 2019
 
RBC Mod 1: Making a New Rails App
RBC Mod 1: Making a New Rails AppRBC Mod 1: Making a New Rails App
RBC Mod 1: Making a New Rails App
 
A Debugging Adventure: Journey through Ember.js Glue
A Debugging Adventure: Journey through Ember.js GlueA Debugging Adventure: Journey through Ember.js Glue
A Debugging Adventure: Journey through Ember.js Glue
 
MeteorJS Session
MeteorJS SessionMeteorJS Session
MeteorJS Session
 
Ember.js for Big Profit
Ember.js for Big ProfitEmber.js for Big Profit
Ember.js for Big Profit
 
Trailblazer Introduction by Nick Sutterer
Trailblazer Introduction by Nick SuttererTrailblazer Introduction by Nick Sutterer
Trailblazer Introduction by Nick Sutterer
 
Familiarity Breeds Contempt (Or why all APIs suck, even yours.)
Familiarity Breeds Contempt (Or why all APIs suck, even yours.)Familiarity Breeds Contempt (Or why all APIs suck, even yours.)
Familiarity Breeds Contempt (Or why all APIs suck, even yours.)
 
JOSA TechTalks - RESTful API Concepts and Best Practices
JOSA TechTalks - RESTful API Concepts and Best PracticesJOSA TechTalks - RESTful API Concepts and Best Practices
JOSA TechTalks - RESTful API Concepts and Best Practices
 
Getting Started With Angular
Getting Started With AngularGetting Started With Angular
Getting Started With Angular
 
Develop:BBC 2013 - Turbocharge your mobile web apps by using offline
Develop:BBC 2013 - Turbocharge your mobile web apps by using offlineDevelop:BBC 2013 - Turbocharge your mobile web apps by using offline
Develop:BBC 2013 - Turbocharge your mobile web apps by using offline
 
Dev with github enterprise
Dev with github enterpriseDev with github enterprise
Dev with github enterprise
 
"Ruby meets Event Sourcing" by Anton Paisov
"Ruby meets Event Sourcing" by Anton Paisov"Ruby meets Event Sourcing" by Anton Paisov
"Ruby meets Event Sourcing" by Anton Paisov
 
Developing Single Page Apps with Ember.js
Developing Single Page Apps with Ember.jsDeveloping Single Page Apps with Ember.js
Developing Single Page Apps with Ember.js
 

Similaire à Creating a server side web app

PHP is the king, nodejs is the prince and Lua is the fool
PHP is the king, nodejs is the prince and Lua is the foolPHP is the king, nodejs is the prince and Lua is the fool
PHP is the king, nodejs is the prince and Lua is the fool
Alessandro Cinelli (cirpo)
 
SinglePageApplications
SinglePageApplicationsSinglePageApplications
SinglePageApplications
Adi Challa
 
jQuery From the Ground Up
jQuery From the Ground UpjQuery From the Ground Up
jQuery From the Ground Up
Kevin Griffin
 

Similaire à Creating a server side web app (20)

Creating a World-Class RESTful Web Services API
Creating a World-Class RESTful Web Services APICreating a World-Class RESTful Web Services API
Creating a World-Class RESTful Web Services API
 
Mike Taulty MIX10 Silverlight Frameworks and Patterns
Mike Taulty MIX10 Silverlight Frameworks and PatternsMike Taulty MIX10 Silverlight Frameworks and Patterns
Mike Taulty MIX10 Silverlight Frameworks and Patterns
 
Web2 And Java
Web2 And JavaWeb2 And Java
Web2 And Java
 
Web Design World Flickr
Web Design World FlickrWeb Design World Flickr
Web Design World Flickr
 
Colloquim Report - Rotto Link Web Crawler
Colloquim Report - Rotto Link Web CrawlerColloquim Report - Rotto Link Web Crawler
Colloquim Report - Rotto Link Web Crawler
 
Progressive EPiServer Development
Progressive EPiServer DevelopmentProgressive EPiServer Development
Progressive EPiServer Development
 
PHP is the king, nodejs is the prince and Lua is the fool
PHP is the king, nodejs is the prince and Lua is the foolPHP is the king, nodejs is the prince and Lua is the fool
PHP is the king, nodejs is the prince and Lua is the fool
 
SinglePageApplications
SinglePageApplicationsSinglePageApplications
SinglePageApplications
 
jQuery From the Ground Up
jQuery From the Ground UpjQuery From the Ground Up
jQuery From the Ground Up
 
Colloquim Report on Crawler - 1 Dec 2014
Colloquim Report on Crawler - 1 Dec 2014Colloquim Report on Crawler - 1 Dec 2014
Colloquim Report on Crawler - 1 Dec 2014
 
Intro to jQuery @ Startup Institute
Intro to jQuery @ Startup InstituteIntro to jQuery @ Startup Institute
Intro to jQuery @ Startup Institute
 
Web Development Presentation
Web Development PresentationWeb Development Presentation
Web Development Presentation
 
Using HttpWatch Plug-in with Selenium Automation in Java
Using HttpWatch Plug-in with Selenium Automation in JavaUsing HttpWatch Plug-in with Selenium Automation in Java
Using HttpWatch Plug-in with Selenium Automation in Java
 
React + Flux = Joy
React + Flux = JoyReact + Flux = Joy
React + Flux = Joy
 
STP 2014 - Lets Learn from the Top Performance Mistakes in 2013
STP 2014 - Lets Learn from the Top Performance Mistakes in 2013STP 2014 - Lets Learn from the Top Performance Mistakes in 2013
STP 2014 - Lets Learn from the Top Performance Mistakes in 2013
 
Basics of web
Basics of webBasics of web
Basics of web
 
Building a Single Page Application with VueJS
Building a Single Page Application with VueJSBuilding a Single Page Application with VueJS
Building a Single Page Application with VueJS
 
Isomorphic javascript - Uppsala.js #8
Isomorphic javascript - Uppsala.js #8Isomorphic javascript - Uppsala.js #8
Isomorphic javascript - Uppsala.js #8
 
Html5
Html5Html5
Html5
 
The State of Wicket
The State of WicketThe State of Wicket
The State of Wicket
 

Creating a server side web app