PyBlog — Profile

Pradyot Prakash
2 min readApr 12, 2022
Photo by Ben Sweet on Unsplash

Content

  1. Project Structure
  2. Firebase Setup
  3. Authentication
  4. Profile [WIP]
  5. Links [WIP]
  6. Final Remark [WIP]

If the user goes to Profile option after login, then the below options will be shown to the user

Set of options which will be shown to the user if Profile is selected
Profile Options

And the code to handle the flow is below

Code which will handle Profile options selection
Profile Actions

Let’s take it one by one,

> My Profile Details

In this option we will just be getting the user details from Firestore and showing it on the console.

Get user profile details from Firestore
Profile Details Code

To get the details from Firestore check the below code

A call to Firebase class in PyBlog for getting user details
Firebase class call
A firestore call to get current user details
Firestore Call to Get User Details

Now the print(string_user_details) just show the details on console like below,

Console output of Profile Details
Profile Details

Now if user presses any key, the flow will go back to the Profile Options selection page.

> My Blog Options

For this one, there are bunch of other options inside it like below

Set of options of the blog for the current logged in user
Blog Options

I will be updating this article for the Blog options, currently it’s under development.

This article will be updated as I get new questions and experience. If you have any new question please provide it in the comments, will add it to the list.

Follow for getting the notification when new articles are published.

Follow me on Twitter and GitHub.

--

--