DEV Community

Discussion on: Hosting an API in Firebase writen with Typescript and Nest

Collapse
 
rezarahmati profile image
Reza Rahmati

great article, although server.ts is different that github source and needs to be updated.

One question, after deploy the api will respond to http requests, I was wondering how can I make a controller to respond to pub/sub or database changes (which firebase supports)

Another question at the end there will be 1 api end point, in matter of micro-srvices we should have fine grained separate apis, (maybe fined grained as modules), what is the best practice for that?

Collapse
 
ayzekuorren profile image
Anatoliy Pogoriliy

Try to use Graphql with nestjs & firebase, Graphql have sub/pub.