Im currently trying to learn how to work with monorepos. I setup a angular and nestjs repo and managed to deploy the nestjs to cloud functions with the gcp cli
.
However I want to try to use firebase
(functions for the backend and hosting for the angular part). However I am unsure how to properly setup firebase in a monorepo. It usually creates a function folder in the root of the directory which dosnt work since the api files will be in dist/apps/api.
Would you setup firebase in the root of the project or rather have it initialised in the relevant apps directories?
to work with angular & firebase, I suggest using The official Angular library for Firebase "@angular/fire".
https://github.com/angular/angularfire
https://github.com/angular/angularfire/blob/master/docs/functions/functions.md
--
I already successfully setup nx + angular + firebase. (ps. with only one app in nx monorepo)
details and pictures can be found here:
https://blog-host-d6b29.web.app/2022/11/27/nx-angular-fire.html
I suggest you also try to setup a new nx + angular workspace, walk through my steps and see how it works.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.