public
Description: Markdown sources for http://hobocentral.net
Homepage: http://hobocentral.net
Clone URL: git://github.com/tablatom/hobocentral.git
tablatom (author)
Mon May 19 12:51:24 -0700 2008
commit  24cd7ac99a5110568ed54667d40c8c02d14cf989
tree    7c8140996b23a8eb759689737526f78fb67635f5
parent  fa9be23a29a0d377111989052a74789717b7b098
hobocentral / two-minutes.markdown
100644 35 lines (21 sloc) 0.85 kb

Hobo in Two Minutes

To build a Hobo app you need to have a working Rails setup. If you can create a Rails app and have it connect to a database, you're all set.

First install Hobo:

$ gem install hobo

Now create an app! We've only got two minutes so we'll create an ultra-useful Thing Manager.

$ hobo thingybob

...Lots of output as Hobo runs the rails command,
...installs plugins and runs generators

$ cd thingybob
$ ./script/generate hobo_model_resource thing name:string body:text
$ ./script/generate hobo_migration

...Respond to the prompt with 'm'
...then press enter to chose the default filename

$ ./script/server

And browse to

http://localhost:3000

And there is your app! You should be able to

  • Sign up
  • Create and edit Things
  • Search for things

That's it. Why not move on to one of the tutorials.