Book Image

Build a News Feed with Nuxt 2 and Firestore [Video]

By : Reed Barger
Book Image

Build a News Feed with Nuxt 2 and Firestore [Video]

By: Reed Barger

Overview of this book

<p>Welcome to Build a News Feed with Nuxt 2 and Firestore!</p><p>We'll be building a real-time newsfeed called NuxtNews, where users will be able to see live news headlines as they are published from around the World, search through them with search terms (by date and search criteria, where users can select headlines by their country, by news category, or by news source), and take a look at these headlines as individual pages within their app. And when users are authenticated (using JSON web tokens and the Firebase Auth REST API), they will be able to bookmark the headlines they want to save and place them within their personalized news feed, comment on articles, and like/upvote comments by other users on those individual headline pages.</p><p></p><p>Here's what we will cover:</p><p>• Get hands-on with the News API to dynamically fetch top headlines around the world (by news category, by country, by the news source, and more)</p><p>• Add search functionality to query all headlines according to search terms, by date and various criteria</p><p>• Create the ability for users to bookmark headlines and add them to their feed</p><p>• Extensive coverage of making HTTP requests with Axios (Nuxt module, proxies, and setting headers)</p><p>• Built-in Nuxt data-fetching with the asyncData and fetch methods</p><p>• Work with Nuxt plugins to incorporate third-party libraries into your Nuxt application</p><p>• Authentication with JSON web tokens and session management with both cookies and LocalStorage</p><p>• User authentication with the Firebase Auth REST API</p><p>• Building Nuxt middleware functions to work as authentication checks and navigation guards</p><p>• Use Vue filters to format date/time values with the popular date-fns package• </p><p>• Bootstrap new Nuxt 2 projects</p><p>• Seamless app deployment with Heroku</p><p></p><p>The NuxtNews app is truly a fully-featured application where you'll learn tons of Nuxt/Vue concepts along the way. Interested in building impressive, practical, full-stack single-page and server-rendered apps with Nuxt and Firestore? This is the course for you!</p><p></p><p>All the code files are placed at https://github.com/PacktPublishing/Build-a-News-Feed-with-Nuxt-2-and-Firestore</p>
Table of Contents (14 chapters)
Free Chapter
1
Getting Started
4
Fetching News Headlines with NewsAPI
11
Querying Headlines by Search Terms, Date and Criteria
13
Migrating from Nuxt 2 / Vuex Store to the Latest Version
14
Deployment to the Web
Chapter 6
Integrating Firestore with Nuxt
Content Locked
Section 1
Setup Firestore as a Plugin, Add User Data to Firestore Database
Integrating Firestore with Nuxt: Setup Firestore as a Plugin, Add User Data to Firestore Database