DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,274 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for Updates on dev-to clone in Angular - August 27
Ajit Singh for This is Angular

Posted on • Originally published at ajitblogs.com

Updates on dev-to clone in Angular - August 27

Help me improve these updates by giving suggestions.

Github Repo - https://github.com/ajitsinghkaler/devto-clone

Deployed on Firebase - https://dev-toclone.firebaseapp.com/

Last week we finished details page article section and basic comments section.
Articles details page

This week I added the complete comments section. It was one the most complex tasks while building the dev.to ui. The comments structure is a bit complex to render. Comments contain a key called children which can again contain comments so it was like a tree like structure.

β”œβ”€β”€ comment
β”‚   β”œβ”€β”€ comment ─── comment
β”‚   β”‚   └── comment
β”‚   β”œβ”€β”€ comment
β”‚   β”œβ”€β”€ comment ─── comment ─── comment
β”‚   β”‚   └── comment ─── comment ─── comment
β”‚   └── comment
β”œβ”€β”€ comments
β”‚   β”œβ”€β”€ comment ─── comment
β”‚   β”‚   └── comment 
β”‚   └── comment 
β”œβ”€β”€β”€β”€ comment
β”‚   β”œβ”€β”€ comment
β”‚   └── comment
└──── comments
Enter fullscreen mode Exit fullscreen mode

How to render an infinite tree. Then I called the comment component from the comment component. To create a recursion like scenario which will render the entire component tree. I've written details about it in this article.

Vimal Patel has also added
commit lint to the repo so that reading the commit messages is easy. I'm thankful for that.

First Live stream

I also did my first live stream with Santosh on moving over our app from angular-cli to NxDevTools we did the basics in the stream and I went over a lot of questions that I have to why Nx if you want to see how to move your project over Nx please follow us on This is tech Talks
we will be migrating the whole dev.to clone to Nx over the live stream. This was my first talk I was a bit nervous but Santosh made me at ease. Thanks Santosh.

So this is where we are right now.
Alt Text

Next week I'll start working on the podcast page.

Issue

  1. Create a 404 page

  2. Comments section css is a bit off

  3. Add number of child comments in comments section

Commits

  1. Commit lint

  2. Basic comments

  3. Comments section completed

Top comments (0)

Update Your DEV Experience Level:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›