https://github.com/kakoni/rails-angular-karma-example
Example app using latest rails, minitest, angularjs, guard and karma
https://github.com/kakoni/rails-angular-karma-example
Last synced: about 2 months ago
JSON representation
Example app using latest rails, minitest, angularjs, guard and karma
- Host: GitHub
- URL: https://github.com/kakoni/rails-angular-karma-example
- Owner: kakoni
- License: mit
- Created: 2014-09-17T18:51:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-17T19:43:35.000Z (over 10 years ago)
- Last Synced: 2025-02-15T15:51:18.920Z (3 months ago)
- Language: Ruby
- Size: 168 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
rails-angular-karma-example
===========================Example app using latest rails (4.2beta), minitest, angularjs, guard and karma.
Based on [Angular + Rails with no fuss](http://sebastien.saunier.me/blog/2014/02/04/angular--rails-with-no-fuss.html),
[Karma on Rails](http://codetunes.com/2014/karma-on-rails/) and
[Setting up an AngularJS and Rails 4.1 Project](http://start.jcolemorrison.com/setting-up-an-angularjs-and-rails-4-1-project/) articles.**Requirements**
* [node](http://nodejs.org) ([on github](https://github.com/joyent/node))
* [bower](https://github.com/bower/bower) (>= 0.10.0) installed with npm##Get started
### 1. Install required gems
``` Bash
bundle install
```
### 2. Install node modules
``` Bash
npm install
```
### 3. Install bower components
``` Bash
rake bower:install
```##Description
* Uses [Angular Rails Templates](https://github.com/pitr/angular-rails-templates) with
karma-ng-html2js-preprocessor for karma [See info](https://github.com/pitr/angular-rails-templates/issues/30#issuecomment-40282414)
* CSRF Token config [See](/app/assets/javascripts/angular/app.js)
* Uglifier fix [See](http://blog.berylliumwork.com/2013/07/tips-on-rails-4-assets-compression-with.html)
* Routing. Routes all valid requests to angular [See](/config/routes.rb)##Running karma
Single run
``` Bash
rake karma:run
```Run using file watcher
``` Bash
rake karma:start
```