This project takes the Angular Tour of Heroes Tutorial and combines Angular CLI.
Please follow the Angular CLI instructions.
Pick either npm or yarn for the JavaScript dependencies.
- Run
yarn install
ornpm install
. - Run
ng serve
to start the Angular CLI managed development server. - Navigate to
http://localhost:4200
. The app will automatically reload if you change any of the source files.
Api prepared based on app in memory db.
in-memory-data.server.ts
could be replaced with your own api implementation.
Run ng generate component component-name
to generate a new component. You can also use
ng generate directive/pipe/service/class/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 ng test
to execute the unit tests via Jest.
To get more help on the Angular CLI use ng help
or go check out the
Angular CLI README.