This folder contains the Client part of the project. It makes request to the backend only. This is where the frontend part of the project resides.
This project was generated with Angular CLI version 10.1.1.
- npm
- Typescript
- Angular
Follow these steps to get a working version of our application
**Make sure you also have the prerequisites from the root folder **
if not using docker, need below
- npm
- angular-cli
- Typescript
- Clone the repo
git clone https://github.com/DPigeon/Money-Tree.git- A. Run the Docker Container (from the client folder of the project)
docker-compose upOR
- B. Alternatively to 2A, you can run
ng servefor a dev server. Navigate tohttp://localhost:4200/. The app will automatically reload if you change any of the source files.
- The client is running on port 80 at http://localhost:80/
The sonarscanner is ran in our workflows, but you might want to run it locally if you want to run it multiple times and verify stuff which will speed up the process.
- Download the scanner here (click on Other)
- Run the scanner in client folder
sonar-scanner -Dsonar.branch.name=$branch_name
IMPORTANT: You need to specify the branch when you're running the scan otherwise it will send the results to the default branch (dev)
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app 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. Use the --prod flag for a production build.
Run npm run test to execute the unit tests via [Jest].
Run npm run test -- --coverage to execute the unit tests and generate a testing report
Run ng e2e to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.