Skip to content

Latest commit

 

History

History
66 lines (37 loc) · 2.52 KB

README.md

File metadata and controls

66 lines (37 loc) · 2.52 KB

Keeptrack Angular frontend application

This project was generated with Angular CLI.

Local setup

Requirements

Configuration

  • Create a file src/environments/environment.dev.ts and update it (this file is not purposed to node save secret values)
    • Open your project in the Firebase console, go in the properties pages (General tab), inside "Your apps" part you'll have all Firebase information
    • Get the value from your local API URL (https://localhost:5011)

Installation of package

Run npm install to load all dependencies.

Development server

Run npm start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Warning: you may encounter CORS issues while testing with Firefox, use Chrome for local debug

Code scaffolding

Run ng generate component <folder>/<component-name> --module=<module-name> to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run npm run 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 Karma.

Running end-to-end tests

Run npm run e2e to execute the end-to-end tests via Protractor.

Running linter

Run npm run lint to validate source code standards.

Further help

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

Update procedure

  • Update NPM: npm install --global npm
  • Follow procedure described by update.angular.io: ng update <component>

Firebase guide

Graphic design