In this project, we'll generate QR codes for our users and display them in the browser.
Here is a target to work towards.
The full anatomy of a URL (parameters are also known as query strings):
Implement the following four URLs:
-
/textThis URL should accept a query string of the form:
?content=Your text goes hereThe value provided under
contentkey of the query string should be encoded in a QR code as plain text. -
/urlThis URL should accept a query string of the form:
?page=https://www.wikipedia.orgThe value provided under the
pagekey of the query string should be encoded in a QR code as a URL (which is just plain text that begins withhttporhttps). -
/wifiThis URL should accept a query string of the form:
?ssid=Your network name&pw=secret passwordThe values provided under the
ssidandpwkeys should be encoded in a QR code as a wifi network. For example:WIFI:T:WPA;S:Your network name;P:secret password;; -
/smsThis URL should accept a query string of the form:
?phone=9876543210&message=Hi Alice! It's me,The values provided under the
phoneandmessagekeys should be encoded in a QR code as a text message: For example:SMSTO:9876543210:Hi Alice! It's me,
