Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreasonny83/angular-starter-kit
A better way to start your new Angular app
https://github.com/andreasonny83/angular-starter-kit
angular angularjs angularjs-boilerplate angularjs-starter-kit boilerplate starter-kit
Last synced: 2 months ago
JSON representation
A better way to start your new Angular app
- Host: GitHub
- URL: https://github.com/andreasonny83/angular-starter-kit
- Owner: andreasonny83
- License: mit
- Created: 2015-10-16T18:03:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-03T18:58:41.000Z (over 7 years ago)
- Last Synced: 2024-09-18T01:05:35.416Z (3 months ago)
- Topics: angular, angularjs, angularjs-boilerplate, angularjs-starter-kit, boilerplate, starter-kit
- Language: JavaScript
- Homepage: http://andreasonny83.github.io/angular-starter-kit/
- Size: 333 KB
- Stars: 6
- Watchers: 3
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Angular Starter Kit
> A better way to start your new Angular app![Angular Logo][angular_logo]
[![Join the chat at https://gitter.im/andreasonny83/angular-starter-kit][gitter-badge]](https://gitter.im/andreasonny83/angular-starter-kit?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![NPM version][npm-badge]](https://www.npmjs.com/package/angular-starter-kit)
[![Build Status][travis-badge]](https://travis-ci.org/andreasonny83/angular-starter-kit)
[![devDependency Status][dependencies-badge]](https://david-dm.org/andreasonny83/angular-starter-kit#info=devDependencies)
[![npm][license-badge]](https://andreasonny.mit-license.org/@2016/)## Features
* SASS support including sourceMaps
* Minimal CSS styling of the view
* Gulp watch, build and local server tasks
* Minified CSS and JS build files
* Unit tests
* E2E tests covered by Protractor
* Istanbul code coverage## Prerequisites
We assume you've already installed [NodeJS][nodejs] on your machine, if not,
please follow the installation documentation from the official websites.## Installation
The easiest way to start your Angular project using Angular Starter Kit is
[Downloading the latest release][latest_release] of this project or simply
cloning this repository with:```sh
git clone https://github.com/andreasonny83/angular-starter-kit.git
```### Setup
Once done with the previous step, open your terminal to your angular-starter-kit
folder, then install all the dependencies with:```sh
npm install
yarn # Or using Yarn for a faster installation
```This will create both a `node_modules` and `bower_components` folder inside
your local directory## 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 browse to the app url available at
[http://localhost:8000](http://localhost:8000) 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 BrowserSync and Gulp.## Build a production version
```sh
npm run build
```This will perform the following tasks:
* clean the `.tmp` and `dist` folder
* compile SASS files, minify and uncss the compiled css
* copy and optimize images
* minify and copy all HTML files into $templateCache
* build index.html
* minify and copy all JS files
* copy fonts, if any## Serve the distribution folder
```bash
npm run serve:dist
```This will compile your project in distribution mode and will trigger a
web server to listen to your generated `dist` folder.Open a browser and navigating to [http://localhost:8000](http://localhost:8000)
to see the rendered application.## Unit tests
```bash
npm test
```This will run all the unit tests present in your project folder using Karma.
The task will remain idle in your terminal waiting for file changes to
run the tests again. This task is really useful during the development mode
in order to avoid running manually your tests every time.However, if you want just to run the test once and build a report displaying the
unit test coverage, use the following task:```bash
npm run test-single-run
```Either way, all the reports will be stored inside a generated `test_out` folder
and a `coverage` for the unit test coverage using [Istanbul][istanbul-url]## End to end testing
The Angular Starter Kit app comes with end-to-end tests written in Jasmine.
These tests are run with the [Protractor][protractor-url]
End-to-End test runner.Your web server needs to be serving up the application,
so that Protractor can interact with it.In order to start running your end-to-end tests,
first start your web server with:```bash
npm start
```Now you can run the end-to-end tests, from another terminal instance,
using the supplied `npm` script:```bash
npm run protractor
```## Contributing
We really appreciate your collaborations and feedbacks!
1. Fork it!
1. Create your feature branch: `git checkout -b my-new-feature`
1. Commit your changes: `git commit -m 'Add some feature'`
1. Push to the branch: `git push origin my-new-feature`
1. Submit a pull request :D## Changelog
Changelog available [here][changelog]
## License
MIT © [Andrea Sonny](https://andreasonny.mit-license.org/2016-2017)
[angular_logo]: https://angularjs.org/img/AngularJS-large.png
[gitter-badge]: https://badges.gitter.im/andreasonny83/angular-starter-kit.svg
[npm-badge]: https://badge.fury.io/js/generator-mdl.svg
[travis-badge]: https://travis-ci.org/andreasonny83/angular-starter-kit.svg?branch=master
[dependencies-badge]: https://david-dm.org/andreasonny83/angular-starter-kit/dev-status.svg
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg
[latest_release]: https://github.com/andreasonny83/angular-starter-kit/releases/latest
[nodejs]: https://nodejs.org/
[istanbul-url]: https://github.com/gotwarlost/istanbul
[protractor-url]:http://www.protractortest.org
[changelog]: https://github.com/andreasonny83/angular-starter-kit/blob/master/CHANGELOG.md