Book Image

Flask By Example

By : Gareth Dwyer
Book Image

Flask By Example

By: Gareth Dwyer

Overview of this book

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.
Table of Contents (20 chapters)
Flask By Example
Credits
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Preface
Index

Using Bootstrap to kick-start our application


In our previous projects, we spent quite a bit of time on frontend work, fiddling around with CSS and HTML, and we didn't even touch on some of the frontend problems that web application developers need to be aware of, such as making sure our content looks good and functions correctly on all devices of all screen sizes running any browser on any operating system. This diversity of browsers and devices as well as the inconsistent way in which each of them implements certain JavaScript, HTML, and CSS functionality is one of the biggest challenges of web development, and there is no silver bullet to solve the problem. However, frontend frameworks such as Bootstrap can take away some of the pain, providing shortcuts for developers to improve their user experience.

Introducing Bootstrap

Bootstrap was developed by Twitter and is released under an open license. It can greatly speed up CSS development as it provides many styles for different HTML layouts...