This project was generated with Angular CLI version 18.0.2.
This section guides new developers through setting up the necessary tools for working on this project. Follow these steps to ensure your development environment is ready.
NVM allows you to manage multiple installations of Node.js. It's essential for ensuring you're using the version of Node.js that's compatible with this project.
- To install NVM, follow the instructions on the NVM GitHub page.
- Once installed, close and reopen your terminal to start using NVM.
After installing NVM, you need to install and use the Node.js version required by this project.
-
This command will read the .nvmrc file in the project directory and install the specified Node.js version:
nvm install
-
To switch to the project's Node.js version, navigate to the project directory and run:
nvm use
The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications.
Install the Angular CLI globally using npm:
npm install -g @angular/cliThe Firebase CLI provides a variety of tools for managing, viewing, and deploying to Firebase projects.
Install the Firebase CLI globally using npm:
npm install -g firebase-toolsWatch this video playlist:
Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.
To deploy your hosting content (the built Angular application):
-
Build your Angular project with production settings:
ng build --configuration=production
-
Deploy to Firebase Hosting:
firebase deploy --only hosting
To deploy Cloud Functions:
- Ensure you're in the functions directory:
cd functions- Deploy your functions to Firebase:
firebase deploy --only functionsTo deploy Firestore security rules and indexes:
Deploy your Firestore rules and indexes (from the root of the project):
firebase deploy --only firestore:rules
firebase deploy --only firestore:indexesFollow these steps to set up your development environment. If you encounter any issues, refer to the documentation of each tool or ask for help from the project maintainers.
