Have a personal or library account? Click to login
Flask By Example Cover

Flask By Example

Unleash the full potential of the Flask web framework by creating simple yet powerful web applications

Paid access
|Apr 2016
Product purchase options

Unleash the full potential of the Flask web framework by creating
simple yet powerful web applications

Key Features

  • The most up-to-date book on Flask on the market
  • Create your own world-class applications and master the art of Flask by unravelling its enigma through this journey
  • This step-by-step tutorial is packed with examples on blending different technologies with Flask to get you up and running

Book Description

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.

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

Who this book is for

Have you looked at PHP and hated the clunky bloated syntax? Or looked at .Net and wished it was more open and flexible? Maybe you’ve tried your hand at GUI libraries in Python and found them hard to use? If your answer to any one of these questions is a yes, then this is just the book for you.
It is also intended for people who know the basics of Python and want to learn how to use it to build powerful solutions with a web front-end.

Table of Contents

  1. Hello World!
  2. Getting started with our headlines project
  3. Using Templates in Our Headlines Project
  4. User input for our headlines project
  5. Improving the User Experience of Our Headlines Project
  6. Building an Interactive Crime Map
  7. Adding Google Maps to Our Crime Map Project
  8. Validating User Input in Our Crime Map Project
  9. Building a Waiter Caller app
  10. Using Template Inheritance and WTForms in Our Waiter Caller Project
  11. Using MongoDB with our Waiter Caller project
  12. Appendix: A Sneak Peak into the future
PDF ISBN: 978-1-78528-348-2
Publisher: Packt Publishing Limited
Copyright owner: © 2016 Packt Publishing Limited
Publication date: 2016
Language: English
Pages: 276