Skip to main content
  1. Personal Website/

Using Firebase to Get Article Views and Likes

·116 words·1 min· loading · loading · ·
Fairchild
Author
Fairchild
A civil engineering guy who quit and ran.
14:30
Table of Contents
website - This article is part of a series.
Part 3: This Article

The Blowfish Theme Manual has provided a detailed introduction to using Firebase, demonstrating how to dynamically obtain article views and likes. This article will demonstrate this with screenshots.

Step 1: Create a new project
#

https://console.firebase.google.com/

Step 2: Get the API
#

Step 3: Create the Database
#

Step 4: Enable Anonymous Access
#

Step 5: Modify params.toml
#

Tip
  • Set showViews = true and showLikes = true
  • Add The [firebase] configuration information; when copying, make sure there’s no comma at the end of each line.
  • Start the hugo server service
  • If there’s no response, close cmd, clear your browser cache, and restart the service.

Try it now!