Giter Site home page Giter Site logo

hui / angularjs_scaffold Goto Github PK

View Code? Open in Web Editor NEW

This project forked from patcito/angularjs_scaffold

0.0 2.0 0.0 939 KB

A rails plugin for scaffolding views using Angular.js, Twitter bootstrap and font-awesome.

Home Page: http://blog.ricodigo.com/blog/2012/10/14/announcing-the-release-of-angularjs-scaffold/

License: MIT License

Ruby 75.27% JavaScript 15.89% CoffeeScript 8.84%

angularjs_scaffold's Introduction

AngularjsScaffold + CoffeeScript

A rails plugin for scaffolding views using Angular.js, Twitter bootstrap and font awesome

This project uses MIT-LICENSE.

First install the gem or add it to your Gemfile:

$ gem install angularjs_scaffold

Second install it, this will add angularjs, bootstrap and fontawesome (there's an option to only install AngularJS)

$ rails g angularjs:install # adds angular.js and a dummy welcome JS controller

options:  

  --layout-type=fixed [fluid]
  --no-jquery
  --no-bootstrap
  --language=coffeescript [javascript]  NOTE: this setting will be set for the entire rails app 
    and will affect all subsequent 'rails generate angularjs:scaffold <<model>>' commands

Run your usual scaffold command:

$ rails g scaffold Post title:string body:string
$ rake db:migrate

Now run the angularjs:scaffold command and it will rewrite everything the AngularJS way:

$ rails g angularjs:scaffold Posts # adds everything needed using AngularJS

Enjoy!

angularjs_scaffold's People

Contributors

explainer avatar oripekelman avatar patcito avatar zequix avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.