Updates on dev.to clone in Angular — August 27

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.

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

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.

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

Originally published at https://ajitblogs.com on August 27, 2021.

--

--

--

Front End Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ajit Singh

Ajit Singh

Front End Developer

More from Medium

How to Add Sentry to your Angular project with Graphql

Provide and conquer — Injected angular forms

Provide-Conquer-Done (Repeat?)

Integrate Cookie Service in Angular Application

HOW TO BUILD A LOGIN AND SIGN UP PAGE WITH API AUTHENTICATION IN ANGULAR