03 Getting Started

  • View
    702

  • Download
    1

Embed Size (px)

DESCRIPTION

2009/9/11に開催されたRelaxCafe@CouchDB break.1 CouchDB Definitive Guide 勉強会 #1の資料の一部です。

Text of 03 Getting Started

  • 1. 03.Getting Started - for RelaxCafe@CouchDB break.1 - 2009/9/11(Fri)z.ohnami

2. z.ohnami( )

    • ->
    • DB
      • DB2( )
      • DB
      • CouchDB
    • @IT
      • 9 29 19:30

3. CouchDB 4. 5. 6. 7.

    • All systems are go !!
    • Welcome to Futon
    • Your First database and document
    • Running a Query Using Map & Reduce
    • Triggering Replication

8. All systems are go !!

  • Raw API

9. All systems are go !!

  • Everything is done
  • using GET, PUT, POST and DELETE with a URI

10. DB

  • HTTP
    • GET
    • PUT
    • POST
    • DELETE

JSON { name:"z.ohnami", phone:"555", blood:"AA" } http:// :5984/ DB / 11. All systems are go !!

    • curl-v

12. 13. 14. Beer bar TALOhttp://www.toritoku.com/talo/index.html 15. Welcome to Futon 16. Welcome to Futon

      • CRUD

17. 18. Your First database and document

    • Hello world
    • _id _rev
      • _id -> uuid
        • uuid
      • _rev ->

19. 20. 21. Running a Query Using Map & Reduce

    • View
      • Map & Reduce
      • View key
        • Key
      • Index
      • temp_view

22.

  • { "_id" : "bc2a41170621c326ec68382f846d5764", "_rev" : "2612672603", "item" : "orange", "prices" : { "Fresh Mart" : 1.99, "Price Max" : 3.19, "Citrus Circus" : 1.09 } }

23. (map)

  • function(doc) { var store, price, value; if (doc.item && doc.prices) { for (store in doc.prices) { price = doc.prices[store]; value = [doc.item, store]; emit(price, value); } } }

24. 25. rit bar http://rit-bar.net/main.html 26. Bar ICE http://orange.zero.jp/zab32985.sky/index.html 3~4 OK 27. Triggering Replication

    • Futon
      • Push,Pull
    • localhost
      • 127.0.0.1
        • Futon
        • curl

28.