ruby on rails - the best track for your start up

48
RUBY ON RAILS THE BEST TRACK FOR YOUR STARTUP’S JOYRIDE DISCLAIMER: I AM A N00B !

Upload: prateek-saxena

Post on 06-May-2015

6.885 views

Category:

Technology


2 download

DESCRIPTION

A presentation provoking developers to use Ruby on Rails and the framework to build their web applications.

TRANSCRIPT

Page 1: Ruby on Rails - The Best Track for your Start Up

RUBY ON RAILSTHEBESTTRACKFORYOURSTARTUP’SJOYRIDE

DISCLAIMER:IAMAN00B!

Page 2: Ruby on Rails - The Best Track for your Start Up

Every start upbegins with a dream

Page 3: Ruby on Rails - The Best Track for your Start Up

Dreams don’t sell

Page 4: Ruby on Rails - The Best Track for your Start Up

Great Products Do

Page 5: Ruby on Rails - The Best Track for your Start Up

You need to plan& build your idea

Page 6: Ruby on Rails - The Best Track for your Start Up

And the best way to do that is...

Page 7: Ruby on Rails - The Best Track for your Start Up
Page 8: Ruby on Rails - The Best Track for your Start Up

Lets get started...

Page 9: Ruby on Rails - The Best Track for your Start Up

but where do we begin?

Page 10: Ruby on Rails - The Best Track for your Start Up

Code is Poetry-WORDPRESS

Page 11: Ruby on Rails - The Best Track for your Start Up

Don’t code. Just think.

What everything will be like?How would it rhyme?

Page 12: Ruby on Rails - The Best Track for your Start Up

user has_one :shopuser has_many :products

shop belongs_to :usershop has_many :shelves

products belong_to :users

shelf belongs_to :shop

Page 13: Ruby on Rails - The Best Track for your Start Up
Page 14: Ruby on Rails - The Best Track for your Start Up

user has_one :shopuser has_many :products

shop belongs_to :usershop has_many :shelves

products belong_to :users

shelf belongs_to :shop

Page 15: Ruby on Rails - The Best Track for your Start Up

A personal chef anyone?

script/generate

Page 16: Ruby on Rails - The Best Track for your Start Up

./script/generate scaffold Product name:string action:string price:integer picture:string summary:text description:text

Page 17: Ruby on Rails - The Best Track for your Start Up
Page 18: Ruby on Rails - The Best Track for your Start Up

C reateR eadU pdateD elete

Page 19: Ruby on Rails - The Best Track for your Start Up

A place to start.A place to learn.

Page 20: Ruby on Rails - The Best Track for your Start Up

Its alive! Its alive! Its alive!...or is it?

script/console

Page 21: Ruby on Rails - The Best Track for your Start Up

Loading development environment (Rails 2.0.2)...

Page 22: Ruby on Rails - The Best Track for your Start Up

Loading development environment (Rails 2.0.2)...

>> Product=> Product(id: integer, name: string, action: string, price: integer, picture: string, summary: text, description: text, created_at: datetime, updated_at: datetime, user_id: integer)

Page 23: Ruby on Rails - The Best Track for your Start Up

Loading development environment (Rails 2.0.2)...

>> Product=> Product(id: integer, name: string, action: string, price: integer, picture: string, summary: text, description: text, created_at: datetime, updated_at: datetime, user_id: integer)

>> Product.find(59)=> #<Product id: 59, name: "Audi TT", action: "sell", price: 100000, picture: "Audi_TT.jpg", summary: "Its a car!!", description: "lorem ipsum dolor sit amet", created_at: "2008-06-07 12:36:32", updated_at: "2008-06-07 12:36:32", user_id: 7>

Page 24: Ruby on Rails - The Best Track for your Start Up

Loading development environment (Rails 2.0.2)...

>> Product=> Product(id: integer, name: string, action: string, price: integer, picture: string, summary: text, description: text, created_at: datetime, updated_at: datetime, user_id: integer)

>> Product.find(59)=> #<Product id: 59, name: "Audi TT", action: "sell", price: 100000, picture: "Audi_TT.jpg", summary: "Its a car!!", description: "lorem ipsum dolor sit amet", created_at: "2008-06-07 12:36:32", updated_at: "2008-06-07 12:36:32", user_id: 7>

Page 25: Ruby on Rails - The Best Track for your Start Up

Loading development environment (Rails 2.0.2)...

>> Product=> Product(id: integer, name: string, action: string, price: integer, picture: string, summary: text, description: text, created_at: datetime, updated_at: datetime, user_id: integer)

>> Product.find(59)=> #<Product id: 59, name: "Audi TT", action: "sell", price: 100000, picture: "Audi_TT.jpg", summary: "Its a car!!", description: "lorem ipsum dolor sit amet", created_at: "2008-06-07 12:36:32", updated_at: "2008-06-07 12:36:32", user_id: 7>

>> Product.find(59).user=> #<User id: 7, login: "Prateek", email: "[email protected]", crypted_password: "a1cb20b35813eaf0c91793595078ab6030a950c3", salt: "3621a974b606c816527d7f25cd83c6ea0b9a13c0", created_at: "2008-06-07 12:34:47", updated_at: "2008-06-07 12:34:47", remember_token: nil, remember_token_expires_at: nil>

Page 26: Ruby on Rails - The Best Track for your Start Up

Loading development environment (Rails 2.0.2)...

>> Product=> Product(id: integer, name: string, action: string, price: integer, picture: string, summary: text, description: text, created_at: datetime, updated_at: datetime, user_id: integer)

>> Product.find(59)=> #<Product id: 59, name: "Audi TT", action: "sell", price: 100000, picture: "Audi_TT.jpg", summary: "Its a car!!", description: "lorem ipsum dolor sit amet", created_at: "2008-06-07 12:36:32", updated_at: "2008-06-07 12:36:32", user_id: 7>

>> Product.find(59).user=> #<User id: 7, login: "Prateek", email: "[email protected]", crypted_password: "a1cb20b35813eaf0c91793595078ab6030a950c3", salt: "3621a974b606c816527d7f25cd83c6ea0b9a13c0", created_at: "2008-06-07 12:34:47", updated_at: "2008-06-07 12:34:47", remember_token: nil, remember_token_expires_at: nil>

Page 27: Ruby on Rails - The Best Track for your Start Up

Walk with me & you’ll learn to walk

script/plugin

Page 28: Ruby on Rails - The Best Track for your Start Up

A login system

Page 29: Ruby on Rails - The Best Track for your Start Up

script/plugin source http://svn.techno-weenie.net/projects/pluginsscript/plugin install restful_authentication

script/generate authenticated user sessions

Page 30: Ruby on Rails - The Best Track for your Start Up

*

*interface not included

Page 31: Ruby on Rails - The Best Track for your Start Up

Beautiful Interface

Page 32: Ruby on Rails - The Best Track for your Start Up

git clone git://github.com/Lipsiasoft/lipsiadmin.git vendor/plugins/lipsiadmin

script/generate lipsiadmin

Page 33: Ruby on Rails - The Best Track for your Start Up
Page 34: Ruby on Rails - The Best Track for your Start Up

Ready to use code.Highly tested.Learning Point for beginners.

Page 35: Ruby on Rails - The Best Track for your Start Up
Page 36: Ruby on Rails - The Best Track for your Start Up

1st Application

Page 37: Ruby on Rails - The Best Track for your Start Up

Learn as you Go!

Page 38: Ruby on Rails - The Best Track for your Start Up

Do it alone!

Page 39: Ruby on Rails - The Best Track for your Start Up

36 HOURS

Page 40: Ruby on Rails - The Best Track for your Start Up

Find time

Page 41: Ruby on Rails - The Best Track for your Start Up

Pretend to be Sick

Page 42: Ruby on Rails - The Best Track for your Start Up

Pretend that you went on a vacation

Page 43: Ruby on Rails - The Best Track for your Start Up

There is help along the way...

Page 45: Ruby on Rails - The Best Track for your Start Up

Thank You

Page 46: Ruby on Rails - The Best Track for your Start Up

Any questions?