Book Image

Mobile First Bootstrap

By : Alexandre Magno
Book Image

Mobile First Bootstrap

By: Alexandre Magno

Overview of this book

<p>Bootstrap changes the way we develop websites in the frontend, and mobile web development has grown incredibly over the past few years. There are over 1.2 billion mobile web users in the world, and 25% of those mobile web users are exclusively mobile. Now, Bootstrap has also gone mobile-first. The mobile-first version of Bootstrap lets you first think about the mobile site and then think about how it expands to larger screens. To build websites for mobile devices that improve the overall experience of your customers, you need to be skilled at using the mobile-first feature of Bootstrap.</p> <p>Mobile First Bootstrap covers the new features in Bootstrap 3 and focuses on how they affect development from a mobile-first perspective. It will show you how to use Bootstrap 3 for developing websites for mobile and how to use that knowledge for your own development projects.</p> <p>The book starts by highlighting the new changes that have been made to Bootstrap 3. After learning about these new features, you will discover how to easily build websites for mobile. You will learn how to run Bootstrap 3 Docs to customize Bootstrap for your needs. You will then be introduced to the new mobile grid system, the responsive utilities, and how to use mobile-first for navigation. Then, using JavaScript, you will explore the power of data attributes and progressive enhancement before starting to develop a web project from scratch. The last section of the book will discuss the main issues that affect the performance of Bootstrap as well as the issues that arise while dealing with responsive images.</p> <p>Mobile First Bootstrap guides you through everything you need to know about Bootstrap 3 and helps you to understand and use the mobile-first approach in your own projects with the help of an example project.</p>
Table of Contents (13 chapters)

The Twitter API search


Now, we have our template for the application and let's get results from Twitter. First of all, we need to create a Twitter account to have an access to the developer features (https://dev.twitter.com/). With an account created, we get the benefits to use the whole API. In the account that you just created, go to your account menu and click on Create a new application; fill up the basic information about your app, such as name, description, and website. You are now ready to get your credentials to use in your own application.

Now, you will see this page that shows all the keys and setup of the application (the keys are like your password, so it's omitted here for you to use your own credentials):

Take a note of these numbers that we will use to connect to the Twitter API with OAuth and make search requests. OAuth (http://oauth.net/) is a protocol standard for authentication for a given service, it is used by Facebook, Yahoo!, and many others too for authenticating through...