https://github.com/andreasonny83/angularjs-es6-tdd
Sample AngularJS app for learning TDD
https://github.com/andreasonny83/angularjs-es6-tdd
angularjs es6 karma karma-webpack tdd webpack
Last synced: 3 months ago
JSON representation
Sample AngularJS app for learning TDD
- Host: GitHub
- URL: https://github.com/andreasonny83/angularjs-es6-tdd
- Owner: andreasonny83
- License: mit
- Created: 2017-08-27T13:34:17.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-08T19:59:24.000Z (almost 9 years ago)
- Last Synced: 2025-01-17T20:44:40.801Z (over 1 year ago)
- Topics: angularjs, es6, karma, karma-webpack, tdd, webpack
- Language: JavaScript
- Size: 699 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AngularJS ES6 TDD
> Sample AngularJS app for learning TDD
## Table of contents
* [Prerequisites](#prerequisites)
* [Installation](#installation)
* [Setup](#setup)
* [Run the Application](#run-the-application)
* [Run the Tests](#run-the-tests)
* [License](#license)
## Prerequisites
We assume you've already installed [NodeJS][nodejs] on your machine, if not,
please follow the installation documentation from the official websites.
## Installation
[Download the latest release][latest_release] of this project or simply
cloning this repository with:
```sh
git clone https://github.com/andreasonny83/angularjs-es6-tdd.git
```
### Setup
Once done with the previous step, open your terminal to your angularjs-es6-tdd
folder, then install all the dependencies with:
```sh
npm install
yarn # Or using Yarn for a faster installation
```
## Run the Application
There is already a preconfigured web server for this application.
The simplest way to start this server is:
```sh
npm start
```
Now open your browse to
[http://localhost:4200](http://localhost:4200) to see your application running.
This task will also watch for any file change to your project's files and
update the browser with the new changes using Webpack and WebpackDevServer.
## Run the tests
```sh
npm test
```
This project uses Karma as a test runner for running all the unit tests present in this
project's `.spec` files.
There is also a watch task available to let you keep running Karma in the background while
developing new code:
```sh
npm run test:watch
```
## License
MIT © [Andrea Sonny](https://andreasonny.mit-license.org/2017)
[nodejs]: https://nodejs.org/
[latest_release]: https://github.com/andreasonny83/angularjs-es6-tdd/releases/latest