Firebase can save you a lot of time at the beginning of your project, but it have so many issues once you start to scale even just a bit, it's such a pain to work with on a real project.(safety issues, bugs, all kind of stupid limitations, your bill can go up extremely easily, it has so many shortcomings)
I'd recommend using some boilerplate from github in your favorite stack even if it might be a little bit longer to build a product with it.