Angular 2 Starter
A simple Angular 2 starter project based on NPM, TypeScript, and Webpack. Used to show how to set up a project build workflow from scratch.
master branch contains the simplest configuration. Other branches show some additional features:
- webpack2-aot: Ahead-of-Time template compilation, using Webpack 2 and the @ngtools/webpack plugin.
- bootstrap: includes the Bootstrap CSS framework.
To work on this project:
npm installinside the project folder to download all the dependencies. This only needs to be done once.
npm run serveto start a local development web server. You can now access the application at localhost:8080.
npm run buildto bundle everything into the
distfolder for deployment.
npm run build:prodto do the same as above but enabling optimisations for production.
This example is part of the Angular 2 From The Ground Up course.