/angular-tour-of-heroes

Angular tour of heroes app implementation with ng9 and jest

Primary LanguageTypeScriptMIT LicenseMIT

Angular Tour Of Heroes

This project takes the Angular Tour of Heroes Tutorial and combines Angular CLI.

Prerequisites

Angular CLI

Please follow the Angular CLI instructions.

JS Dependencies

Pick either npm or yarn for the JavaScript dependencies.

Quick Start

  1. Run yarn install or npm install.
  2. Run ng serve to start the Angular CLI managed development server.
  3. Navigate to http://localhost:4200. The app will automatically reload if you change any of the source files.

Api

Api prepared based on app in memory db. in-memory-data.server.ts could be replaced with your own api implementation.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class/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 ng test to execute the unit tests via Jest.

Further help

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