Permalink
Browse files

readme

  • Loading branch information...
1 parent 12ea8a9 commit 1ac74bc463e3ced8e05d32ce376afea9928054d7 @lancejpollard lancejpollard committed Dec 22, 2011
Showing with 8 additions and 182 deletions.
  1. +3 −1 .npmignore
  2. +1 −0 docs
  3. +0 −1 examples/api/Procfile
  4. +0 −23 examples/api/README.md
  5. +0 −17 examples/api/app/controllers/posts_controller.coffee
  6. +0 −3 examples/api/app/docs/home.md
  7. +0 −5 examples/api/app/helpers/application_helper.coffee
  8. +0 −2 examples/api/app/models/post.coffee
  9. +0 −2 examples/api/app/presenters/post/index_presenter.coffee
  10. +0 −18 examples/api/app/views/layouts/application.jade
  11. +0 −2 examples/api/app/views/posts/index.jade
  12. +0 −1 examples/api/app/views/shared/_head.jade
  13. +0 −14 examples/api/config/application.coffee
  14. +0 −6 examples/api/config/locales/en.coffee
  15. +0 −9 examples/api/config/routes.coffee
  16. +0 −51 examples/api/package.json
  17. +0 −12 examples/api/server.js
  18. +0 −4 lib/tower/model.js
  19. 0 examples/api/app/assets/javascripts/application.coffee → src/tower/generator/generators/app/Cakefile
  20. 0 examples/api/app/assets/stylesheets/application.css → src/tower/generator/generators/app/README.md
  21. 0 ...es/api/app/assets/stylesheets/application.css.styl → src/tower/generator/generators/app/Watchfile
  22. +1 −0 src/tower/generator/generators/app/app/client/controllers/applicationController.coffee
  23. 0 .../app/views/posts/_form.jade → src/tower/generator/generators/app/app/stylesheets/application.styl
  24. 0 ...p/views/posts/edit.jade → src/tower/generator/generators/app/app/views/layouts/application.coffee
  25. 0 examples/api/app/views/posts/new.jade → src/tower/generator/generators/app/config/application.coffee
  26. 0 examples/api/app/views/posts/show.jade → src/tower/generator/generators/app/config/routes.coffee
  27. 0 src/tower/generator/generators/app/package.json
  28. 0 src/tower/generator/generators/app/public/humans.txt
  29. 0 src/tower/generator/generators/app/public/robots.txt
  30. 0 src/tower/generator/generators/app/server.js
  31. 0 src/tower/generator/generators/app/vendor/javascripts/coffeekup.js
  32. 0 src/tower/generator/generators/app/vendor/javascripts/socket.io.js
  33. 0 src/tower/generator/generators/app/vendor/javascripts/underscore.js
  34. +0 −2 src/tower/model.coffee
  35. +0 −8 src/tower/model/versioning.coffee
  36. 0 src/tower/tasks/assets.cake
  37. +3 −0 src/tower/tasks/db.cake
  38. 0 src/tower/tasks/log.cake
  39. 0 src/tower/tasks/routes.cake
  40. +0 −1 wiki
View
@@ -4,8 +4,10 @@
.git*
Cakefile
wiki/
-examples/
+docs/
src/
spec/
+dist/
+examples/
favicon.ico
Watchfile
1 docs
Submodule docs added at a0729d
View
@@ -1 +0,0 @@
-web: node server.js
View
@@ -1,23 +0,0 @@
-# Example Metro Web Service App
-
-## Development Environment
-
-```
-brew install https://raw.github.com/mxcl/homebrew/cb6a4b4765ca4439eb03cd137cc6cbae143a8c62/Library/Formula/node.rb # heroku
-npm install metro
-```
-
-## Run
-
-```
-node server.js
-```
-
-## Deploy to Heroku
-
-```
-heroku create --stack cedar
-git push heroku master
-```
-
-Make sure to add any new node modules to `package.json`.
@@ -1,17 +0,0 @@
-class PostsController
- @include Metro.Controllers.Base
-
- #@layout "application"
- @layout false
-
- t: (string) ->
- @_t ?= require("#{Metro.root}/config/locales/en")
- @_t[string]
-
- index: ->
- #@render layout: false, json: hello: 'world'
- @render json: hello: 'world'
- #@render "posts/index"
- #@respond_with hello: 'world'
-
-module.exports = PostsController
@@ -1,3 +0,0 @@
-# Metro Bootstrap App
-
-This is a doc!
@@ -1,5 +0,0 @@
-class ApplicationHelper
- t: (string) ->
- @_t ?= require("#{Metro.root}/config/locales/en")
- @_t[string]
-
@@ -1,2 +0,0 @@
-class Post
- @include Metro.Models.Base
@@ -1,2 +0,0 @@
-class Post.IndexPresenter
- @include Metro.Presenter
@@ -1,18 +0,0 @@
-!!! 5
-html
- head
- meta(charset="UTF-8")
- title= t("title")
- meta(name="description", content=t("description"))
- meta(name="keywords", content=t("keywords"))
- //-!= stylesheet_link_tag("application")
- body(role="application")
- nav#navigation(role="navigation")
- .frame
- header#header
- .frame
- section#body
- .frame
- != yield
- footer#footer
- .frame
@@ -1,2 +0,0 @@
-header.header
- h1.title#title Hello World
@@ -1 +0,0 @@
-= meta_tag("title", t("title"))
@@ -1,14 +0,0 @@
-Metro.configure ->
- #@models.orm = "metro-mongo"
-
- #@views.engine = "jade"
-
- @assets.path = "./public/assets"
- @assets.css_compressor = "yui"
- @assets.js_compressor = "uglifier"
- @assets.js = ["application.js"]
- @assets.css = ["application.css", "theme.css"]
- @assets.css_paths = ["./app/assets/stylesheets"]
- @assets.js_paths = ["./app/assets/javascripts"]
-
-Metro.Views.engine = "jade"
@@ -1,6 +0,0 @@
-en =
- title: "Metro Bootstrap"
- description: "Node like Rails"
- keywords: "Node.js, Ruby on Rails, MVC"
-
-module.exports = en
@@ -1,9 +0,0 @@
-Metro.Application.routes().draw ->
- @match "/login", to: "sessions#new", via: "get", as: "login"
-
- @match "/posts", to: "posts#index", via: "get"
- @match "/posts/:id/edit", to: "posts#edit", via: "get"
- @match "/posts/:id", to: "posts#show", via: "get"
- @match "/posts", to: "posts#create", via: "post"
- @match "/posts/:id", to: "posts#update", via: "put"
- @match "/posts/:id", to: "posts#destroy", via: "delete"
View
@@ -1,51 +0,0 @@
-{
- "name": "metro-bootstrap",
- "version": "0.2.3",
- "description": "Rails-esque Framework for Node.js",
- "homepage": "http://viatropos.github.com/metro.js",
- "main": "lib/metro.js",
- "author": "Lance Pollard <lancejpollard@gmail.com>",
- "keywords": [
- "framework",
- "compression",
- "node"
- ],
- "licenses": [
- {
- "type": "MIT",
- "url": "http://mths.be/mit"
- }
- ],
- "bugs": {
- "url": "https://github.com/viatropos/metro.js/issues"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/viatropos/metro.js.git"
- },
- "engines": { "node": ">= 0.4.0" },
- "directories": {
- "test": "spec"
- },
- "dependencies": {
- "coffee-script": ">= 1.1.0",
- "uglify-js": ">= 1.1.1",
- "file": ">= 0.1.1",
- "underscore": ">= 1.1.6",
- "underscore.string": ">= 1.1.6",
- "mime": ">= 1.2.4",
- "connect": ">= 1.7.1",
- "findit": ">= 0.1.1",
- "stylus": ">= 0.17.0",
- "ejs": ">= 0.4.3",
- "hamljs": ">= 0.5.1",
- "jade": ">= 0.16.2",
- "less": ">= 1.1.4",
- "sass": ">= 0.5.0",
- "scss": ">= 0.2.0",
- "mustache": ">= 0.3.1-dev",
- "markdown": ">= 0.2.1",
- "qs": ">= 0.3.1",
- "metro": ">= 0.2.5"
- }
-}
View
@@ -1,12 +0,0 @@
-var Metro = require("metro");
-require("coffee-script");
-
-Metro.root = process.cwd();
-Metro.Views.load_paths = [Metro.root + "/app/views"]
-Metro.env = "development";
-Metro.port = process.env.PORT || 1597;
-
-Metro.Views.pretty_print = true
-
-Metro.Application.bootstrap();
-Metro.Application.run();
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1 @@
+class App.PostsController extends Tower.Controller
View
@@ -26,7 +26,6 @@ require './model/inheritance'
require './model/relation'
require './model/relations'
require './model/field'
-require './model/versioning'
require './model/fields'
require './model/persistence'
require './model/atomic'
@@ -41,7 +40,6 @@ require './model/locale/en'
Tower.Model.include Tower.Model.Persistence
Tower.Model.include Tower.Model.Atomic
-Tower.Model.include Tower.Model.Versioning
Tower.Model.include Tower.Model.Metadata
Tower.Model.include Tower.Model.Dirty
Tower.Model.include Tower.Model.Criteria
@@ -1,8 +0,0 @@
-# http://mongoid.org/docs/extras.html
-Tower.Model.Versioning =
- ClassMethods:
- maxVersions: (number) ->
-
-
-
-module.exports = Tower.Model.Versioning
No changes.
View
@@ -0,0 +1,3 @@
+cake 'db:push', ->
+
+cake 'db:pull', ->
View
No changes.
No changes.
1 wiki
Submodule wiki deleted from 105f1c

0 comments on commit 1ac74bc

Please sign in to comment.