资源说明:What You Will Learn
Build three web applications from the ground up using the powerful Python micro framework, Flask.
Dynamically display data to your viewers, based on their requests
Store user and static data in SQL and NoSQL databases and use this data to power your web applications
Create a good user experience by combining HTML, CSS, and JavaScript
Harness the convenience of freely available APIs, including OpenWeatherMap, Open Exchange Rates, and bitly
Extend your applications to build advanced functionality, such as a user account control system using Flask-Login
Learn about web application security and defend against common attacks, such as SQL injection and XSS
In Detail
This book will take you on a journey from learning about web development using Flask to building fully functional web applications. In the first major project, we develop a dynamic Headlines application that displays the latest news headlines along with up-to-date currency and weather information. In project two, we build a Crime Map application that is backed by a MySQL database, allowing users to submit information on and the location of crimes in order to plot danger zones and other crime trends within an area. In the final project, we combine Flask with more modern technologies, such as Twitter's Bootstrap and the NoSQL database MongoDB, to create a Waiter Caller application that allows restaurant patrons to easily call a waiter to their table. This pragmatic tutorial will keep you engaged as you learn the crux of Flask by working on challenging real-world applications.
Style and approach
This book will provide you with rich, practical experience of Flask. Every technology, that is employed along with Flask is comprehensively introduced, while the book focusses on developing web applications. Pointers to educational material are always given if you want to gain in-depth knowledge of the various technologies used.
Table of Contents
Chapter 1: Hello, World!
Chapter 2: Getting Started with Our Headlines Project
Chapter 3: Using Templates in Our Headlines Project
Chapter 4: User Input for Our Headlines Project
Chapter 5: Improving the User Experience of Our Headlines Project
Chapter 6: Building an Interactive Crime Map
Chapter 7: Adding Google Maps to Our Crime Map Project
Chapter 8: Validating User Input in Our Crime Map Project
Chapter 9: Building a Waiter Caller App
Chapter 10: Template Inheritance and WTForms in Waiter Caller Project
Chapter 11: Using MongoDB with Our Waiter Caller Project
Appendix: A Sneak Peek into the Future
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。