Have you noticed that HN was originally a small group of smart industry knowledgable people, and gradually they trended towards disengaging as it got too big and busy and it became a crowd of jeering Redditor plebs like me? HN is a marketing machine for YCombinator, not a real community. If what you want is really "to build a big site with lots of users", the word "community" doesn't really apply, ask what you want "how do I build a site which tempts large numbers of casual users?".
Communities stay small. If your reason is you want a place where people who like X can discuss X then become a good place for those people to do that, be present, engage all the time, invite appropriate people to it and make it interesting enough that they have reason to come back, make it about what they want (could be a mailing list) instead of what you want ("my new forum written in React with a mobile app backed by an IRC channel!"). That will likely stay small - people probably already have a place to discuss X, there's probably a Reddit about X, and the real thing they'll be interested in is who else goes there (and who is excluded), not where it is or what software it uses. There's way more community in 50 people discussing a thing than in some mega-site built for ad revenue. Not much prestige or excitement in that, though.