https://github.com/1337programming/angular2.0-wepack-app
Angular 2.0 Sample App using Typescript as a ECMAScript 6 standard and invoking webpack as a module bundler.
https://github.com/1337programming/angular2.0-wepack-app
Last synced: 12 months ago
JSON representation
Angular 2.0 Sample App using Typescript as a ECMAScript 6 standard and invoking webpack as a module bundler.
- Host: GitHub
- URL: https://github.com/1337programming/angular2.0-wepack-app
- Owner: 1337programming
- License: mit
- Created: 2015-08-08T19:17:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-02T15:30:42.000Z (over 10 years ago)
- Last Synced: 2025-03-28T19:38:58.743Z (12 months ago)
- Language: TypeScript
- Size: 641 KB
- Stars: 8
- Watchers: 7
- Forks: 6
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](http://badge.fury.io/gh/1337programming%2Fangular2.0-App)
[](https://david-dm.org/1337programming/angular2.0-App)
[](http://issuestats.com/github/1337-programming/angular2.0-App)
# Angular 2.0 Sample App
Angular 2.0 Sample App using Typescript as a ECMAScript 6 standard and invoking webpack as a module bundler.
Gulp is included in the stack to wrap Webpack and any other required task automation processes.
## Tags
* Angular 2.0
* TypeScript
* ECMAScript 6 Standard
* Webpack
* Gulp
# Getting Started
## Dependencies
What is needed to run this app:
* `node`
* `npm`
* `gulp`
Install the following node modules
* `webpack` (`npm install -g webpack`)
* `webpack-dev-server` (`npm install -g webpack-dev-server`)
* `karma` (`npm install -g karma-cli`)
* `protractor` (`npm install -g protractor`)
* `TypeScript` (`npm install -g typescript`)
* `TSD typings` (`npm install -g tsd`)
## Install
* `fork` repo
* `clone`
* `npm install`
* `gulp` starts the dev server in
## Running App
After installation run `npm run server` to start a local server using `webpack-dev-server` which will watch, build (in-memory), and reload for you. The port will be displayed to you as `http://localhost:3000` (or if you prefer IPv6, if you're using `express` server, then it's `http://[::1]:3000/`).
### server
```bash
$ webpack-dev-server
```
## Other Commands
### build files
```bash
$ webpack
```
### watch and build files
```bash
$ webpack --watch
```
### Webpack Dev Server and Watch and build files
```bash
$ gulp serve
```
### run tests
```bash
$ karma start
```
### run webdriver (E2E)
```bash
$ webdriver-manager start
then
$ npm run e2e
```
# Angular 2.0 API
reference: https://angular.io/docs/js/latest/api/
# License
[MIT](/LICENSE)