Hacker News new | ask | show | jobs
by makeee 2236 days ago
I generally use Next.js, Bulma, Firebase Auth, and Firestore. For more complex apps, will move Firestore behind a REST API and use react-query for data fetching/caching.
1 comments

> will move Firestore behind a REST API

How do you do that? Do you spin up your own server?

With Next.js it's just a matter of dropping a file in the src/pages/api directory. So I'd create API files like create-user.js, update-user.js, etc.