The intent of this project is to show a very basic use of Redux in combination with Angular 2.
This project was generated with angular-cli version 1.0.0-beta.20-4.
Authored by @JeremyLikness.
- Visit the Demo App
- Read about using Redux with Angular 2 and TypeScript
- Learn how this project integrated Angular 2 unit tests with Visual Studio Team Services
- Read how this project was set up for Continuous Deployment with Visual Studio Team Services and Docker
Run the latest docker container for this.
docker run --name webapp -d -p 80:80 jlikness/ng2kendouireduxapp
Here are the steps to get started working locally.
npm login --registry=https://registry.npm.telerik.com/ --scope=@progress
The username is your login to the Telerik site. If you use an email, just enter everything before the email (i.e. foo@acme.com you will enter foo). Your full email will be prompted for as well.
git clone https://github.com/JeremyLikness/Angular2ReduxKendoUIHealthApp.git
Go to the root Angular2ReduxKendoUIHealthApp
directory.
npm install
ng serve
This will build an image, run it, and open the browser to the running app:
npm run-script docker-start
This will stop and remove the container:
npm run-script docker-stop
This will stop, remove the container, and remove the image:
npm run-script docker-cleanup
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.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive/pipe/service/class
.
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 Karma.
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
.
Run ng github-pages:deploy
to deploy to Github Pages.
To get more help on the angular-cli
use ng --help
or go check out the Angular-CLI README.