couchconf israel developing with couchbase

38
1 Developing with Couchbase Server Chris Anderson @jchris

Upload: couchbase

Post on 18-Mar-2018

494 views

Category:

Technology


10 download

TRANSCRIPT

Page 1: CouchConf Israel Developing with Couchbase

1

Developing with Couchbase Server

Chris Anderson @jchris

Page 2: CouchConf Israel Developing with Couchbase

2

Page 3: CouchConf Israel Developing with Couchbase

2

Easy to

Page 4: CouchConf Israel Developing with Couchbase

Easy to Get

2

Easy to

Page 5: CouchConf Israel Developing with Couchbase

Easy to Get

2

(Building on) Open

Easy to

Page 6: CouchConf Israel Developing with Couchbase

LANGUAGE

3

Page 7: CouchConf Israel Developing with Couchbase

LANGUAGE Ruby, Java, PHP, C#, Python,

3

Page 8: CouchConf Israel Developing with Couchbase

LANGUAGE Ruby, Java, PHP, C#, Python,

3

More soon!

Page 9: CouchConf Israel Developing with Couchbase

SUPPORT ALL COUCHBASE 2.0

4

Page 10: CouchConf Israel Developing with Couchbase

SUPPORT ALL COUCHBASE 2.0

4

get, set, add, replace,

Page 11: CouchConf Israel Developing with Couchbase

SUPPORT ALL COUCHBASE 2.0

4

get, set, add, replace, touch, gat, getl,

Page 12: CouchConf Israel Developing with Couchbase

SUPPORT ALL COUCHBASE 2.0

views

4

get, set, add, replace, touch, gat, getl,

Page 13: CouchConf Israel Developing with Couchbase

BEST PRACTICES ARE

5

Page 14: CouchConf Israel Developing with Couchbase

BEST PRACTICES ARE

5

Data Access

Page 15: CouchConf Israel Developing with Couchbase

BEST PRACTICES ARE

Paginatio

5

Data Access

Page 16: CouchConf Israel Developing with Couchbase

BEST PRACTICES ARE

Paginatio

5

Data Access

Access to Development and Production

Page 17: CouchConf Israel Developing with Couchbase

6

THE SERVER

Page 18: CouchConf Israel Developing with Couchbase

6

THE SERVER(BUCKETS AND VIEWS)

Page 19: CouchConf Israel Developing with Couchbase

7

THE DATA

Page 20: CouchConf Israel Developing with Couchbase

7

THE DATA(PRESIDENTS AND U.S. EVENTS)

Page 21: CouchConf Israel Developing with Couchbase

8

THE VIEWS

Page 22: CouchConf Israel Developing with Couchbase

8

THE VIEWS(PRESIDENT_NAMES, BY_STATE,

Page 23: CouchConf Israel Developing with Couchbase

9

QUICK RUBY EXAMPLE

Page 24: CouchConf Israel Developing with Couchbase

9

QUICK RUBY EXAMPLE(COUCHBASE GEM IN IRB)

Page 25: CouchConf Israel Developing with Couchbase

10

Page 26: CouchConf Israel Developing with Couchbase

10

require 'couchbase'require 'uuid'DEFAULT_BUCKET_URL = 'http://localhost:8091/pools/default'couchbase = Couchbase.new(DEFAULT_BUCKET_URL)

Page 27: CouchConf Israel Developing with Couchbase

10

require 'couchbase'require 'uuid'DEFAULT_BUCKET_URL = 'http://localhost:8091/pools/default'couchbase = Couchbase.new(DEFAULT_BUCKET_URL)

design_doc = couchbase.design_docs[‘design_doc’]design_doc.views[‘president_names’, ‘president_events’, ‘by_party’, ‘by_state’]

Page 28: CouchConf Israel Developing with Couchbase

10

require 'couchbase'require 'uuid'DEFAULT_BUCKET_URL = 'http://localhost:8091/pools/default'couchbase = Couchbase.new(DEFAULT_BUCKET_URL)

design_doc = couchbase.design_docs[‘design_doc’]design_doc.views[‘president_names’, ‘president_events’, ‘by_party’, ‘by_state’]

design_doc.president_names(:reduce => false).each { |doc|puts \"#{doc['key']}: #{doc['value']}\"

}

Page 29: CouchConf Israel Developing with Couchbase

GET STARTED!

11

Page 30: CouchConf Israel Developing with Couchbase

GET STARTED!

11

http://github.com/couchbaselabs/php-

Page 35: CouchConf Israel Developing with Couchbase

HTTP://

12

DownloadsGetting Started

Page 36: CouchConf Israel Developing with Couchbase

HTTP://

12

DownloadsGetting Started

In-Depth Tutorials

Page 37: CouchConf Israel Developing with Couchbase

HTTP://

12

DownloadsGetting Started

In-Depth TutorialsScreencasts

Page 38: CouchConf Israel Developing with Couchbase

QUESTION

13