Skip to content

Latest commit

 

History

History

README.md

CI Frontend Pipeline
Quality gate
Bugs Coverage Lines of Code Technical Debt Vulnerabilities

About

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.

Built With

  • npm
  • Typescript
  • Angular

Getting Started

Follow these steps to get a working version of our application

Prerequisites

**Make sure you also have the prerequisites from the root folder **

if not using docker, need below

  • npm
  • angular-cli
  • Typescript

Installation

  1. Clone the repo
git clone https://github.com/DPigeon/Money-Tree.git
  1. A. Run the Docker Container (from the client folder of the project)
docker-compose up

OR

  1. B. Alternatively to 2A, you can 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.

Usage

FAQ And Special Configurations

How to run sonarscanner locally

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.

  1. Download the scanner here (click on Other)
  2. 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)

Development server

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.

Code scaffolding

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.

Build

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.

Running unit tests

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

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.