Skip to content

A Task List single page application implemented in Angular 4.

Notifications You must be signed in to change notification settings

paucls/task_list_ui-angular

Repository files navigation

Task List UI - Angular

Build Status

A Tasks List web app for a Task List REST API service.

This is a simple pet project application that shows how to implement Angular 4 apps with unit tests, e2e tests against a stub backend, configuration for deployment in Heroku, etc.

This project was scaffolded with angular-cli version 1.0.0-beta.20-4.

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.

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 Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Demo

https://paucls-task-list-ui.herokuapp.com/ Demo

Version History

  • 1.1.0 - Added code coverage to unit tests.
  • 1.0.1 - Updated Angular to version 4.1.2, it fixes bug with MockBackend and the production build. Using again build with AOT.
  • 1.0.0 - Updated Angular to version 4.0.0 as part of updating to Angular CLI 1.0.0. (As drawback this versions disables aot on production build, this is related to bug with Angular 4 and MockService angular/angular#15521).
  • 0.0.0 - Implemented completely the project, used Angular 2 and Angular CLI 1.0.0-beta.20-4.

Documentation

Links to some of the articles and documentation used to implement this project:

Deploy to Heroku

Setup Travis CI

Unit Tests

Stub backend and E2E Tests

Angular 2 Tutorial