Giter VIP home page Giter VIP logo

goaloc's Introduction

= goaloc

* http://github.com/mattknox/goaloc/tree

== DESCRIPTION:

This is Generate on a Lot of Crack, which started its life as a more powerful script/generate for rails, and is evolving into a multi-framework webapp scaffolder

== FEATURES/PROBLEMS:

it should:
-be easier to remove, rename, etc., attributes.
-support using a rails app specifier like Jeremy McAnally's rg
-have high-level datatypes, like email, url, ssn, etc..
-support acts-as-tree things
-handle enums, so you can do some of the constraint stuff from PicoLisp
-do haml for views (maybe?)
-make it serve goaloc directly (this is maybe really hard)
-include a javascripty interface, so that one can go up the post-comment-rating chain in one page.
-write backend for datamapper
-write backend for haml
-write a merb target
-write an erlyweb target
-write a django target
-sinatra/compojure/furnace?
-support singular resources
-write the plugin architecture
-extend goals such that they can be told not to make a controller, or view, or model.
-must make it serve apps next
-add cucumber features as high-level specs
-support polymorphic resources (has_many :polymorphs type stuff)
-add syntax for guaranteeing that something is in-session(so that you can specify that the user is logged in, eg.)
-look at cloudkit: http://getcloudkit.com/  it exposes RESTful json apis really easily
-shoulda will now support rspec, so maybe I should generate RSpec/shoulda and Test::Unit/shoulda?
-need to rename/split/join models.
-steal the rails code generator framework, or make my own.
-need to think about how to make apps built in the framework scale smoothly (probably by making the db layer agnostic about doc/relational dbs)
-is it easy to make continuous deploy if you start early enough?  Very interesting question.
-is it easy to bake in A/B testing?
-need to think also about the the CMS dilemma- http://aaronlongwell.com/2009/06/the-ruby-on-rails-cms-dilemma.html  rails is great for apps, bad for sites.  Modules seem to solve this fairly well.
-need to build in app visibility (some kind of stats dashboard, perhaps?)  This could well be a module/goal that one mixes in as needed.
-need to port to rails 3
-might want a module that does click-tracking or something.
-need the module system
-need to rethink in light of Avi Bryant's claim that rails/seaside are legacy.
  -in particular, it should be possible to sketch code in the browser and eventually dump out the results to be compiled to rails/etc.

==DONE:
-include jquery for js
-include bluetrip css framework
-some rdoc

== SYNOPSIS:

Goaloc was motivated by the fact that to make a nested resource (ie, to get  /posts/1/comments to resolve), one must specify the relation between post and comment in 4 places:  the routes, the migration, and in both models.  That's silly, and not so DRY.  Enter GoaLoC, and the "blog in 15 minutes" talk essentially reduces to:

goaloc
>> @app.name = "myblog"
>> route [:posts, :comments]
>> add_attrs :posts => "body:text title:string", :comments => "body:text"
>> generate

generate presently only knows how to make rails apps, and part of merb apps, but in principle, any REST-centric MVC app could be targeted comfortably, and even PHP apps could be done.

route [:causes, { :class => :users, :through => :memberships }, :tasks ]

will set up causes has many users through memberships

== REQUIREMENTS:

shoulda to run tests, possibly ruby2ruby in the future.

== INSTALL:

gem install mattknox-goaloc

== LICENSE:

(The MIT License)

Copyright (c) 2008 FIX

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

goaloc's People

Contributors

mattknox avatar norcalaussie avatar

Stargazers

Angus H. avatar Charles Magid avatar

Watchers

James Cloos 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.