Module 2 - Introduction To A Web-App
Module 2 - Introduction To A Web-App
Introduction to a web-app
Topics:
Wikipedia Gmail
For the rest of this course: webapps web applications + websites + webpages
b
r
o
w
s
e F
r i
r
a e
p f
p o
l toxModern Application
Introduction Dr Gaurav Raina (IIT Madras), Tanmai Gopal
2. Webapps - a detailed look
Common browsers
text/h . http://www.cenlib.iitm.ac.in/docs/
tm l ht library/ejnls-iitm.html
ml
Computer programs that can make requests to servers and fetch responses are called clients. When these programs
https://hasura.io/img/hasura-sa
im ag .
make requests
e/png pn to web
nd.pngservers, they are called web clients. A browser is a web client.
g
Introduction to Modern Application Dr Gaurav Raina (IIT Madras), Tanmai Gopal
2.1 Browser
Modern browsers can interpret and run code written by the application author (Javascript)
Clicking on the icon shows the pending friend Facebook newsfeed keeps automatically fetching new
requests (facebook) content
Introduction to Modern Application Dr Gaurav Raina (IIT Madras), Tanmai Gopal
2.2 URL
A URL identifies both the server and the resource (webpage or content)
Protocol: It defines the mode/rules of communication between the client and server for the request.
Hostname: It identifies the server which will serve the request. It may contain the domain name. In this
case flipkart.com
Path: It defines the resource which is being requested. It typically points to a webpage. (in this case list
of books)
Query String: It typically contains any additional parameters that is typically used to add more context to
the same path (in this case books that are about web app)
Introduction to Modern Application Dr Gaurav Raina (IIT Madras), Tanmai Gopal
2.3 DNS - Domain Name System
DNS is like a directory which links the domain name to the IP address of the server
Every server must have a unique IP address which clients can use to connect with it over the internet.
This IP address is mapped to a human friendly domain name to make it easy to remember.
The directory is maintained by name servers. Programs can exchange the domain-name for the
registered IP address by requesting the name server. This is called a DNS lookup
Router
ISP
connection
Com puter/devic ISP Core router
e
1.2.3.4
network (meaning the entire systems of hardware and software) will route your request to the
computer that has that IP.
W eb server
N etw ork
resp on se Brow ser
(w eb client)
req u est
Com puter (host)
Very commonly, a server is also used to refer to the actual computer (also called a host)
on which the server software is installed.
works
Introduction to Modern Application You can watch the module video on Youtube:Dr Gaurav Raina (IIT Madras), Tanmai Gopal