No commit activity in last 3 years
No release in over 3 years
Setup new rails projects for angular/jasmine, includes generators for angular MVC files.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.3
>= 0
>= 0
 Project Readme

AngularVelocity

Installation

Add this line to your application's Gemfile:

gem 'angular_velocity'

And then execute:

$ bundle

Or install it yourself as:

$ gem install angular_velocity

Usage

$ rails g angular_velocity:install -f
$ rm public/index.html

File are created under app/assets/javascripts/<application_name>/ And jasmine specs are created under spec/javascripts/<application_name>/

Commands

$ rails g angular_velocity:install

This command installs Angular and Jasmine into your Rails project. You can confirm Angular is installed by going to: http://localhost:3000/. Also, you can confirm jasmine is installed by going to: http://localhost:3000/specs

The directory structure created will resemble: --app
---assets
----javascripts
-----<--AppName-->
--------views
--------controllers
--------services
--spec
---javascripts
----controllers
----services

$ rails g angular_velocity:contoller <resource_name>

This command creates a contoller template for angular along with the spec for testing. The controller is place in:

--app
---assets
----javascripts
-----<--AppName-->
--------controllers
--spec
---javascripts
----controllers

$ rails g angular_velocity:service <resource_name>

This command creates a service template for angular along with the spec for testing. The service is place in:

--app
---assets
----javascripts
-----<--AppName-->
--------services
--spec
---javascripts
----services

$ rails g angular_velocity:scaffold <resource_name>

This command creates all angular files and jasmine files plus the rails controller and model files for a resource.

--app
--controllers
--- <--RailsController-->
--models
--- <--RailsModel-->
---assets
----javascripts
-----<--AppName-->
--------views
--------controllers
--------services
--spec
--controllers
--- <--RailsControllerSpec-->
--models
--- <--RailsModelSpec-->
---javascripts
----controllers
----services