Week4 Project practice : Weather Report Web-0
Requirements description
- Use Flask to implement a web app - weather report
- Use HTML to design a simple web page
- Use Jinja Template to improve the html pages
- Use CSS to decorate the html pages
- Reuse last week task: openweathermap.py
- Use Bootstrap to suppor mobile device
Break down to small tasks
Flask
1.1 Try the Hello World sample
1.2 GET and POST methods
1.3 The Request Object
1.4 Render template
HTML
2.1 Form: input text, radio, button
2.2 Table: tr, th, td
2.3 Block and Inline elements: h1-h6, p, div; span, img
Jinja Template
3.1 Template Inheritance
3.2 Variables
3.3 Statements: for loop, if else ...
CSS
4.1 Syntax
4.2 How to insert
4.3 Font, Color, Padding, Margin, Border, Form, Table
Improve last week task: openweathermap.py to reuse
5.1 Call Google timezone API to convert the system's timestamp to the query location timestamp
Boostrap
5.1 Start from a Boostrap template, modify it
5.2 USe CSS provided by Boostrap