Quantcast
Channel: bitPrison.net - Web development
Viewing all articles
Browse latest Browse all 23

How to use Padrino with mongodb

$
0
0

Padrino is a ruby framework built upon the excellent Sinatra Microframework.

$ padrino g project blog -d mongomapper -t rspec -s jquery -e haml -c compass
      create 
      create  config.ru
      create  public/favicon.ico
      create  config/apps.rb
      create  config/boot.rb
      create  app
      create  app/app.rb
      create  app/controllers
      create  app/helpers
      create  .components
      create  Gemfile
Applying 'mongomapper' (orm)...
       apply  orms/mongomapper
      inject  Gemfile
      inject  Gemfile
      create  config/database.rb
      create  app/models
Applying 'rspec' (test)...
       apply  tests/rspec
      inject  Gemfile
      inject  Gemfile
      create  spec/spec_helper.rb
      create  spec/spec.rake
Skipping generator for mock component...
Applying 'jquery' (script)...
       apply  scripts/jquery
      create  public/javascripts/jquery.js
      create  public/javascripts/application.js
Applying 'haml' (renderer)...
       apply  renderers/haml
      inject  Gemfile
Applying 'compass' (stylesheet)...
       apply  stylesheets/compass
      inject  Gemfile
      create  lib/compass_plugin.rb
      inject  app/app.rb
      create  app/stylesheets
      create  app/stylesheets/application.scss
      create  app/stylesheets/partials/_base.scss
   identical  .components

=================================================================
blog is ready for development! Next, follow these steps:
=================================================================
1) cd blog
2) bundle install
=================================================================

$ cd blog
$ bundle install
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using activesupport (3.0.0)
Installing bson (1.1)
Installing bson_ext (1.1) with native extensions
Using bundler (1.0.2)
Installing haml (3.0.21)
Installing compass (0.10.5)
Installing daemons (1.1.0)
Installing eventmachine (0.12.10) with native extensions
Using git (1.2.5)
Using rack (1.2.1)
Using url_mount (0.2.1)
Using http_router (0.4.0)
Using i18n (0.4.1)
Installing jnunemaker-validatable (1.8.4)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.8)
Using mail (2.2.6.1)
Installing mongo (1.0.9)
Installing plucky (0.3.5)
Installing mongo_mapper (0.8.4)
Using sinatra (1.0)
Using thor (0.14.3)
Using tzinfo (0.3.23)
Using padrino-core (0.9.18)
Using padrino-helpers (0.9.18)
Using padrino-admin (0.9.18)
Using padrino-gen (0.9.18)
Using padrino-mailer (0.9.18)
Using padrino (0.9.18)
Installing rack-flash (0.1.1)
Using rack-test (0.5.6)
Installing rspec (1.3.0)
Installing thin (1.2.7) with native extensions
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

Your bundle was installed to `/usr/local/rvm/gems/ruby-1.9.2-p0@global`
Blog categories:  Web development
Blog tags:  ruby padrino

Viewing all articles
Browse latest Browse all 23

Trending Articles