Permalink
Browse files

Reorganizing directories

  • Loading branch information...
1 parent 74b66e3 commit 08070cb2cb12dd8d816d884a7bcc91113a0f8438 @ccoenraets committed May 3, 2012
Showing with 44 additions and 35 deletions.
  1. +3 −3 cellar.sql
  2. BIN pics/generic.jpg
  3. +5 −29 readme.md
  4. 0 { → tutorial}/api/.htaccess
  5. 0 { → tutorial}/api/Slim/Exception/Pass.php
  6. 0 { → tutorial}/api/Slim/Exception/RequestSlash.php
  7. 0 { → tutorial}/api/Slim/Exception/Stop.php
  8. 0 { → tutorial}/api/Slim/Http/Cookie.php
  9. 0 { → tutorial}/api/Slim/Http/CookieJar.php
  10. 0 { → tutorial}/api/Slim/Http/Request.php
  11. 0 { → tutorial}/api/Slim/Http/Response.php
  12. 0 { → tutorial}/api/Slim/Http/Uri.php
  13. 0 { → tutorial}/api/Slim/Log.php
  14. 0 { → tutorial}/api/Slim/Logger.php
  15. 0 { → tutorial}/api/Slim/Route.php
  16. 0 { → tutorial}/api/Slim/Router.php
  17. 0 { → tutorial}/api/Slim/Session/Flash.php
  18. 0 { → tutorial}/api/Slim/Session/Handler.php
  19. 0 { → tutorial}/api/Slim/Session/Handler/Cookies.php
  20. 0 { → tutorial}/api/Slim/Slim.php
  21. 0 { → tutorial}/api/Slim/View.php
  22. +1 −1 { → tutorial}/api/index.php
  23. 0 { → tutorial}/css/styles.css
  24. 0 { → tutorial}/final/index.html
  25. 0 { → tutorial}/final/js/main.js
  26. 0 { → tutorial}/final/js/models/winemodel.js
  27. 0 { → tutorial}/final/js/utils.js
  28. 0 { → tutorial}/final/js/views/header.js
  29. 0 { → tutorial}/final/js/views/winedetails.js
  30. 0 { → tutorial}/final/js/views/winelist.js
  31. 0 { → tutorial}/final/tpl/header.html
  32. 0 { → tutorial}/final/tpl/wine-details.html
  33. 0 { → tutorial}/final/tpl/wine-list-item.html
  34. 0 { → tutorial}/lib/backbone-min.js
  35. 0 { → tutorial}/lib/jquery-1.7.1.min.js
  36. 0 { → tutorial}/lib/underscore-min.js
  37. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/.classpath
  38. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/.project
  39. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/.settings/org.eclipse.jdt.core.prefs
  40. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/AndroidManifest.xml
  41. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/css/styles.css
  42. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/index.html
  43. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/js/main.js
  44. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/js/models/winemodel.js
  45. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/js/utils.js
  46. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/js/views/winedetails.js
  47. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/js/views/winelist.js
  48. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/lib/backbone-min.js
  49. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/lib/jquery-1.7.1.min.js
  50. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/lib/underscore-min.js
  51. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/phonegap-android-1.4.1.js
  52. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/pics/block_nine.jpg
  53. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/pics/bodega_lurton.jpg
  54. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/pics/bouscat.jpg
  55. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/pics/domaine_serene.jpg
  56. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/pics/ex_umbris.jpg
  57. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/pics/generic.jpg
  58. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/pics/lan_rioja.jpg
  59. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/pics/le_doyenne.jpg
  60. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/pics/lurton-pinot-gris.jpg
  61. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/pics/margerum.jpg
  62. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/pics/morizottes.jpg
  63. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/pics/rex_hill.jpg
  64. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/pics/saint_cosme.jpg
  65. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/pics/viticcio.jpg
  66. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/tpl/wine-details.html
  67. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/tpl/wine-list-item.html
  68. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/assets/www/tpl/wine-list.html
  69. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/bin/BackboneCellarAndroid.apk
  70. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/bin/classes.dex
  71. BIN ...mobile/android/BackboneCellarAndroid/bin/org/coenraets/cellar/BackboneCellarAndroidActivity.class
  72. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/bin/org/coenraets/cellar/R$attr.class
  73. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/bin/org/coenraets/cellar/R$drawable.class
  74. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/bin/org/coenraets/cellar/R$layout.class
  75. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/bin/org/coenraets/cellar/R$string.class
  76. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/bin/org/coenraets/cellar/R$xml.class
  77. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/bin/org/coenraets/cellar/R.class
  78. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/bin/resources.ap_
  79. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/default.properties
  80. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/gen/org/coenraets/cellar/R.java
  81. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/libs/phonegap-1.4.1.jar
  82. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/proguard.cfg
  83. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/res/drawable-hdpi/icon.png
  84. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/res/drawable-ldpi/icon.png
  85. BIN { → tutorial}/mobile/android/BackboneCellarAndroid/res/drawable-mdpi/icon.png
  86. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/res/layout/main.xml
  87. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/res/values/strings.xml
  88. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/res/xml/phonegap.xml
  89. 0 { → tutorial}/mobile/android/BackboneCellarAndroid/res/xml/plugins.xml
  90. 0 .../mobile/android/BackboneCellarAndroid/src/org/coenraets/cellar/BackboneCellarAndroidActivity.java
  91. 0 { → tutorial}/mobile/ios/WineCellar/WineCellar.xcodeproj/project.pbxproj
  92. 0 ...tutorial}/mobile/ios/WineCellar/WineCellar.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  93. BIN ...ar.xcodeproj/project.xcworkspace/xcuserdata/christophe.xcuserdatad/UserInterfaceState.xcuserstate
  94. 0 ...WineCellar/WineCellar.xcodeproj/xcuserdata/christophe.xcuserdatad/xcschemes/WineCellar 2.xcscheme
  95. 0 ...s/WineCellar/WineCellar.xcodeproj/xcuserdata/christophe.xcuserdatad/xcschemes/WineCellar.xcscheme
  96. 0 ...eCellar/WineCellar.xcodeproj/xcuserdata/christophe.xcuserdatad/xcschemes/xcschememanagement.plist
  97. 0 { → tutorial}/mobile/ios/WineCellar/WineCellar/Classes/AppDelegate.h
  98. 0 { → tutorial}/mobile/ios/WineCellar/WineCellar/Classes/AppDelegate.m
  99. 0 { → tutorial}/mobile/ios/WineCellar/WineCellar/Classes/MainViewController.h
  100. 0 { → tutorial}/mobile/ios/WineCellar/WineCellar/Classes/MainViewController.m
  101. 0 { → tutorial}/mobile/ios/WineCellar/WineCellar/Classes/MainViewController.xib
  102. 0 { → tutorial}/mobile/ios/WineCellar/WineCellar/PhoneGap.plist
  103. 0 { → tutorial}/mobile/ios/WineCellar/WineCellar/Plugins/README
  104. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/Capture.bundle/controls_bg.png
  105. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/Capture.bundle/controls_bg@2x.png
  106. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/Capture.bundle/controls_bg~ipad.png
  107. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/Capture.bundle/microphone.png
  108. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/Capture.bundle/microphone@2x.png
  109. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/Capture.bundle/microphone~ipad.png
  110. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/Capture.bundle/record_button.png
  111. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/Capture.bundle/record_button@2x.png
  112. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/Capture.bundle/record_button~ipad.png
  113. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/Capture.bundle/recording_bg.png
  114. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/Capture.bundle/recording_bg@2x.png
  115. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/Capture.bundle/recording_bg~ipad.png
  116. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/Capture.bundle/stop_button.png
  117. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/Capture.bundle/stop_button@2x.png
  118. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/Capture.bundle/stop_button~ipad.png
  119. 0 { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/en.lproj/Localizable.strings
  120. 0 { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/es.lproj/Localizable.strings
  121. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/icons/icon-72.png
  122. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/icons/icon.png
  123. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/icons/icon@2x.png
  124. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/splash/Default.png
  125. BIN { → tutorial}/mobile/ios/WineCellar/WineCellar/Resources/splash/Default@2x.png
  126. 0 { → tutorial}/mobile/ios/WineCellar/WineCellar/WineCellar-Info.plist
  127. 0 { → tutorial}/mobile/ios/WineCellar/WineCellar/WineCellar-Prefix.pch
  128. 0 { → tutorial}/mobile/ios/WineCellar/WineCellar/en.lproj/InfoPlist.strings
  129. 0 { → tutorial}/mobile/ios/WineCellar/WineCellar/main.m
  130. 0 { → tutorial}/mobile/ios/WineCellar/www/css/styles.css
  131. 0 { → tutorial}/mobile/ios/WineCellar/www/index.html
  132. 0 { → tutorial}/mobile/ios/WineCellar/www/js/main.js
  133. 0 { → tutorial}/mobile/ios/WineCellar/www/js/models/winemodel.js
  134. 0 { → tutorial}/mobile/ios/WineCellar/www/js/utils.js
  135. 0 { → tutorial}/mobile/ios/WineCellar/www/js/views/winedetails.js
  136. 0 { → tutorial}/mobile/ios/WineCellar/www/js/views/winelist.js
  137. 0 { → tutorial}/mobile/ios/WineCellar/www/lib/backbone-min.js
  138. 0 { → tutorial}/mobile/ios/WineCellar/www/lib/jquery-1.7.1.min.js
  139. 0 { → tutorial}/mobile/ios/WineCellar/www/lib/underscore-min.js
  140. 0 { → tutorial}/mobile/ios/WineCellar/www/phonegap-ios-1.4.1.js
  141. BIN { → tutorial}/mobile/ios/WineCellar/www/pics/block_nine.jpg
  142. BIN { → tutorial}/mobile/ios/WineCellar/www/pics/bodega_lurton.jpg
  143. BIN { → tutorial}/mobile/ios/WineCellar/www/pics/bouscat.jpg
  144. BIN { → tutorial}/mobile/ios/WineCellar/www/pics/domaine_serene.jpg
  145. BIN { → tutorial}/mobile/ios/WineCellar/www/pics/ex_umbris.jpg
  146. BIN { → tutorial}/mobile/ios/WineCellar/www/pics/generic.jpg
  147. BIN { → tutorial}/mobile/ios/WineCellar/www/pics/lan_rioja.jpg
  148. BIN { → tutorial}/mobile/ios/WineCellar/www/pics/le_doyenne.jpg
  149. BIN { → tutorial}/mobile/ios/WineCellar/www/pics/lurton-pinot-gris.jpg
  150. BIN { → tutorial}/mobile/ios/WineCellar/www/pics/margerum.jpg
  151. BIN { → tutorial}/mobile/ios/WineCellar/www/pics/morizottes.jpg
  152. BIN { → tutorial}/mobile/ios/WineCellar/www/pics/rex_hill.jpg
  153. BIN { → tutorial}/mobile/ios/WineCellar/www/pics/saint_cosme.jpg
  154. BIN { → tutorial}/mobile/ios/WineCellar/www/pics/viticcio.jpg
  155. 0 { → tutorial}/mobile/ios/WineCellar/www/tpl/wine-details.html
  156. 0 { → tutorial}/mobile/ios/WineCellar/www/tpl/wine-list-item.html
  157. 0 { → tutorial}/mobile/ios/WineCellar/www/tpl/wine-list.html
  158. 0 { → tutorial}/mobile/offline/css/styles.css
  159. 0 { → tutorial}/mobile/offline/index.html
  160. 0 { → tutorial}/mobile/offline/js/main.js
  161. 0 { → tutorial}/mobile/offline/js/models/winemodel.js
  162. 0 { → tutorial}/mobile/offline/js/views/winedetails.js
  163. 0 { → tutorial}/mobile/offline/js/views/winelist.js
  164. 0 { → tutorial}/mobile/offline/lib/backbone-min.js
  165. 0 { → tutorial}/mobile/offline/lib/jquery-1.7.1.min.js
  166. 0 { → tutorial}/mobile/offline/lib/underscore-min.js
  167. 0 { → tutorial}/mobile/offline/phonegap-ios-1.4.1.js
  168. BIN { → tutorial}/mobile/offline/pics/block_nine.jpg
  169. BIN { → tutorial}/mobile/offline/pics/bodega_lurton.jpg
  170. BIN { → tutorial}/mobile/offline/pics/bouscat.jpg
  171. BIN { → tutorial}/mobile/offline/pics/domaine_serene.jpg
  172. BIN { → tutorial}/mobile/offline/pics/ex_umbris.jpg
  173. BIN { → tutorial}/mobile/offline/pics/generic.jpg
  174. BIN { → tutorial}/mobile/offline/pics/lan_rioja.jpg
  175. BIN { → tutorial}/mobile/offline/pics/le_doyenne.jpg
  176. BIN { → tutorial}/mobile/offline/pics/lurton-pinot-gris.jpg
  177. BIN { → tutorial}/mobile/offline/pics/margerum.jpg
  178. BIN { → tutorial}/mobile/offline/pics/morizottes.jpg
  179. BIN { → tutorial}/mobile/offline/pics/rex_hill.jpg
  180. BIN { → tutorial}/mobile/offline/pics/saint_cosme.jpg
  181. BIN { → tutorial}/mobile/offline/pics/viticcio.jpg
  182. 0 { → tutorial}/mobile/offline/tpl/wine-details.html
  183. 0 { → tutorial}/mobile/offline/tpl/wine-list-item.html
  184. 0 { → tutorial}/mobile/offline/tpl/wine-list.html
  185. 0 { → tutorial}/part1/index.html
  186. +2 −2 { → tutorial}/part1/js/main.js
  187. 0 { → tutorial}/part2/index.html
  188. 0 { → tutorial}/part2/js/main.js
  189. 0 { → tutorial}/part3/index.html
  190. 0 { → tutorial}/part3/js/main.js
  191. BIN tutorial/pics/argiano.jpg
  192. BIN { → tutorial}/pics/block_nine.jpg
  193. BIN { → tutorial}/pics/bodega_lurton.jpg
  194. BIN { → tutorial}/pics/bouscat.jpg
  195. BIN tutorial/pics/calera.jpg
  196. BIN tutorial/pics/capineto.png
  197. BIN tutorial/pics/caronne.jpg
  198. BIN tutorial/pics/dinastia.jpg
  199. BIN { → tutorial}/pics/domaine_serene.jpg
  200. BIN { → tutorial}/pics/ex_umbris.jpg
  201. BIN tutorial/pics/fourvines.jpg
  202. BIN tutorial/pics/generic.jpg
  203. BIN tutorial/pics/hugel.jpg
  204. BIN { → tutorial}/pics/lan_rioja.jpg
  205. BIN { → tutorial}/pics/le_doyenne.jpg
  206. BIN { → tutorial}/pics/lurton-pinot-gris.jpg
  207. BIN { → tutorial}/pics/margerum.jpg
  208. BIN tutorial/pics/momo.jpg
  209. BIN { → tutorial}/pics/morizottes.jpg
  210. BIN tutorial/pics/petalos.jpg
  211. BIN tutorial/pics/ponzi.jpg
  212. BIN tutorial/pics/quivira.jpg
  213. BIN { → tutorial}/pics/rex_hill.jpg
  214. BIN { → tutorial}/pics/saint_cosme.jpg
  215. BIN tutorial/pics/shafer.jpg
  216. BIN { → tutorial}/pics/viticcio.jpg
  217. BIN tutorial/pics/waterbrook.jpg
  218. +33 −0 tutorial/readme.md
View
@@ -32,7 +32,7 @@ CREATE TABLE `wine` (
`description` blob,
`picture` varchar(256) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -41,7 +41,7 @@ CREATE TABLE `wine` (
LOCK TABLES `wine` WRITE;
/*!40000 ALTER TABLE `wine` DISABLE KEYS */;
-INSERT INTO `wine` VALUES (1,'CHATEAU DE SAINT COSME','2009','Grenache / Syrah','France','Southern Rhone / Gigondas','The aromas of fruit and spice give one a hint of the light drinkability of this lovely wine, which makes an excellent complement to fish dishes.','saint_cosme.jpg'),(2,'LAN RIOJA CRIANZA','2006','Tempranillo','Spain','Rioja','A resurgence of interest in boutique vineyards has opened the door for this excellent foray into the dessert wine market. Light and bouncy, with a hint of black truffle, this wine will not fail to tickle the taste buds.','lan_rioja.jpg'),(3,'MARGERUM SYBARITE','2010','Sauvignon Blanc','USA','California Central Cosat','The cache of a fine Cabernet in ones wine cellar can now be replaced with a childishly playful wine bubbling over with tempting tastes of\nblack cherry and licorice. This is a taste sure to transport you back in time.','margerum.jpg'),(4,'OWEN ROE \"EX UMBRIS\"','2009','Syrah','USA','Washington','A one-two punch of black pepper and jalapeno will send your senses reeling, as the orange essence snaps you back to reality. Don\'t miss\nthis award-winning taste sensation.','ex_umbris.jpg'),(5,'REX HILL','2009','Pinot Noir','USA','Oregon','One cannot doubt that this will be the wine served at the Hollywood award shows, because it has undeniable star power. Be the first to catch\nthe debut that everyone will be talking about tomorrow.','rex_hill.jpg'),(6,'VITICCIO CLASSICO RISERVA','2007','Sangiovese Merlot','Italy','Tuscany','Though soft and rounded in texture, the body of this wine is full and rich and oh-so-appealing. This delivery is even more impressive when one takes note of the tender tannins that leave the taste buds wholly satisfied.','viticcio.jpg'),(7,'CHATEAU LE DOYENNE','2005','Merlot','France','Bordeaux','Though dense and chewy, this wine does not overpower with its finely balanced depth and structure. It is a truly luxurious experience for the\nsenses.','le_doyenne.jpg'),(8,'DOMAINE DU BOUSCAT','2009','Merlot','France','Bordeaux','The light golden color of this wine belies the bright flavor it holds. A true summer wine, it begs for a picnic lunch in a sun-soaked vineyard.','bouscat.jpg'),(9,'BLOCK NINE','2009','Pinot Noir','USA','California','With hints of ginger and spice, this wine makes an excellent complement to light appetizer and dessert fare for a holiday gathering.','block_nine.jpg'),(10,'DOMAINE SERENE','2007','Pinot Noir','USA','Oregon','Though subtle in its complexities, this wine is sure to please a wide range of enthusiasts. Notes of pomegranate will delight as the nutty finish completes the picture of a fine sipping experience.','domaine_serene.jpg'),(11,'BODEGA LURTON','2011','Pinot Gris','Argentina','Mendoza','Solid notes of black currant blended with a light citrus make this wine an easy pour for varied palates.','bodega_lurton.jpg'),(12,'LES MORIZOTTES','2009','Chardonnay','France','Burgundy','Breaking the mold of the classics, this offering will surprise and undoubtedly get tongues wagging with the hints of coffee and tobacco in\nperfect alignment with more traditional notes. Breaking the mold of the classics, this offering will surprise and\nundoubtedly get tongues wagging with the hints of coffee and tobacco in\nperfect alignment with more traditional notes. Sure to please the late-night crowd with the slight jolt of adrenaline it brings.','morizottes.jpg');
+INSERT INTO `wine` VALUES (1,'CHATEAU DE SAINT COSME','2009','Grenache / Syrah','France','Southern Rhone','The aromas of fruit and spice give one a hint of the light drinkability of this lovely wine, which makes an excellent complement to fish dishes.','saint_cosme.jpg'),(2,'LAN RIOJA CRIANZA','2006','Tempranillo','Spain','Rioja','A resurgence of interest in boutique vineyards has opened the door for this excellent foray into the dessert wine market. Light and bouncy, with a hint of black truffle, this wine will not fail to tickle the taste buds.','lan_rioja.jpg'),(3,'MARGERUM SYBARITE','2010','Sauvignon Blanc','USA','California Central Cosat','The cache of a fine Cabernet in ones wine cellar can now be replaced with a childishly playful wine bubbling over with tempting tastes of black cherry and licorice. This is a taste sure to transport you back in time.','margerum.jpg'),(4,'OWEN ROE \"EX UMBRIS\"','2009','Syrah','USA','Washington','A one-two punch of black pepper and jalapeno will send your senses reeling, as the orange essence snaps you back to reality. Don\'t miss this award-winning taste sensation.','ex_umbris.jpg'),(5,'REX HILL','2009','Pinot Noir','USA','Oregon','One cannot doubt that this will be the wine served at the Hollywood award shows, because it has undeniable star power. Be the first to catch the debut that everyone will be talking about tomorrow.','rex_hill.jpg'),(6,'VITICCIO CLASSICO RISERVA','2007','Sangiovese Merlot','Italy','Tuscany','Though soft and rounded in texture, the body of this wine is full and rich and oh-so-appealing. This delivery is even more impressive when one takes note of the tender tannins that leave the taste buds wholly satisfied.','viticcio.jpg'),(7,'CHATEAU LE DOYENNE','2005','Merlot','France','Bordeaux','Though dense and chewy, this wine does not overpower with its finely balanced depth and structure. It is a truly luxurious experience for the\nsenses.','le_doyenne.jpg'),(8,'DOMAINE DU BOUSCAT','2009','Merlot','France','Bordeaux','The light golden color of this wine belies the bright flavor it holds. A true summer wine, it begs for a picnic lunch in a sun-soaked vineyard.','bouscat.jpg'),(9,'BLOCK NINE','2009','Pinot Noir','USA','California','With hints of ginger and spice, this wine makes an excellent complement to light appetizer and dessert fare for a holiday gathering.','block_nine.jpg'),(10,'DOMAINE SERENE','2007','Pinot Noir','USA','Oregon','Though subtle in its complexities, this wine is sure to please a wide range of enthusiasts. Notes of pomegranate will delight as the nutty finish completes the picture of a fine sipping experience.','domaine_serene.jpg'),(11,'BODEGA LURTON','2011','Pinot Gris','Argentina','Mendoza','Solid notes of black currant blended with a light citrus make this wine an easy pour for varied palates.','bodega_lurton.jpg'),(12,'LES MORIZOTTES','2009','Chardonnay','France','Burgundy','Breaking the mold of the classics, this offering will surprise and undoubtedly get tongues wagging with the hints of coffee and tobacco in perfect alignment with more traditional notes. Sure to please the late-night crowd with the slight jolt of adrenaline it brings.','morizottes.jpg'),(13,'ARGIANO NON CONFUNDITUR','2009','Cabernet Sauvignon','Italy','Tuscany','Like a symphony, this cabernet has a wide range of notes that will delight the taste buds and linger in the mind.','argiano.jpg'),(14,'DINASTIA VIVANCO ','2008','Tempranillo','Spain','Rioja','Whether enjoying a fine cigar or a nicotine patch, don\'t pass up a taste of this hearty Rioja, both smooth and robust.','dinastia.jpg'),(15,'PETALOS BIERZO','2009','Mencia','Spain','Castilla y Leon','For the first time, a blend of grapes from two different regions have been combined in an outrageous explosion of flavor that cannot be missed.','petalos.jpg'),(16,'SHAFER RED SHOULDER RANCH','2009','Chardonnay','USA','California','Keep an eye out for this winery in coming years, as their chardonnays have reached the peak of perfection.','shafer.jpg'),(17,'PONZI','2010','Pinot Gris','USA','Oregon','For those who appreciate the simpler pleasures in life, this light pinot grigio will blend perfectly with a light meal or as an after dinner drink.','ponzi.jpg'),(18,'HUGEL','2010','Pinot Gris','France','Alsace','Fresh as new buds on a spring vine, this dewy offering is the finest of the new generation of pinot grigios. Enjoy it with a friend and a crown of flowers for the ultimate wine tasting experience.','hugel.jpg'),(19,'FOUR VINES MAVERICK','2011','Zinfandel','USA','California','o yourself a favor and have a bottle (or two) of this fine zinfandel on hand for your next romantic outing. The only thing that can make this fine choice better is the company you share it with.','fourvines.jpg'),(20,'QUIVIRA DRY CREEK VALLEY','2009','Zinfandel','USA','California','Rarely do you find a zinfandel this oakey from the Sonoma region. The vintners have gone to extremes to duplicate the classic flavors that brought high praise in the early \'90s.','quivira.jpg'),(21,'CALERA 35TH ANNIVERSARY','2010','Pinot Noir','USA','California','Fruity and bouncy, with a hint of spice, this pinot noir is an excellent candidate for best newcomer from Napa this year. \n','calera.jpg'),(22,'CHATEAU CARONNE STE GEMME','2010','Cabernet Sauvignon','France','Bordeaux','Find a sommelier with a taste for chocolate and he\'s guaranteed to have this cabernet on his must-have list. \n','caronne.jpg'),(23,'MOMO MARLBOROUGH','2010','Sauvignon Blanc','New Zealand','South Island','Best served chilled with melon or a nice salty prosciutto, this sauvignon blanc is a staple in every Italian kitchen, if not on their wine list. Request the best, and you just may get it.','momo.jpg'),(24,'WATERBROOK','2009','Merlot','USA','Washington','Legend has it the gods didn\'t share their ambrosia with mere mortals. This merlot may be the closest we\'ve ever come to a taste of heaven.','waterbrook.jpg');
/*!40000 ALTER TABLE `wine` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -54,4 +54,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2011-12-01 9:22:24
+-- Dump completed on 2012-05-03 9:36:22
View
Deleted file not rendered
View
@@ -1,33 +1,9 @@
-# Backbone.js Wine Cellar Tutorial #
+# Wine Cellar Sample Application #
"Backbone Cellar" is a sample [Backbone.js](http://documentcloud.github.com/backbone/) application.
-The application allows you to browse through a list of wines, as well as add, update, and delete wines.
+The application allows you to browse through a list of wines, add, update, and delete wines.
-"Backbone Cellar" is the application used in the four-part tutorial posted here: [part 1](http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tutorial-part-1-getting-started/), [part 2](http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tutorial-part-2-crud/), [part 3](http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tutorial-part-3-deep-linking-and-application-states/), [part 4](http://coenraets.org/blog/2012/01/backbone-js-lessons-learned-and-improved-sample-app/).
+This repository provides several versions of the same application:
-If you just want to look at the final version of the application, look in the [final](https://github.com/ccoenraets/backbone-cellar/tree/master/final) directory.
-
-You can also follow the tutorial and build the application step by step:
-
-- In Part 1 ([doc](http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tutorial-part-1-getting-started/) - [code](https://github.com/ccoenraets/backbone-cellar/tree/master/part1)), you define the basic infrastructure. You create a “read-only” version of the application: you’ll be able to retrieve a list of wine and get the details of each wine.
-- In Part 2 ([doc](http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tutorial-part-2-crud/) - [code](https://github.com/ccoenraets/backbone-cellar/tree/master/part2)), you add the code to add, update and delete wines. You leverage Backbone’s powerful REST integration.
-- In Part 3 ([doc](http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tutorial-part-3-deep-linking-and-application-states/) - [code](https://github.com/ccoenraets/backbone-cellar/tree/master/part3)), you add complete support for history management and deep linking.
-- In Part 4 ([doc](http://coenraets.org/blog/2012/01/backbone-js-lessons-learned-and-improved-sample-app/) - [code](https://github.com/ccoenraets/backbone-cellar/tree/master/final)), you load templates asynchronously and implement a few best practices.
-
-The UI is intentionally plain to keep the focus on the architecture of the application.
-
-## Set Up: ##
-
-1. Create a MySQL database name "cellar".
-2. Execute cellar.sql to create and populate the "wine" table:
-
- mysql cellar -uroot < cellar.sql
-
-## Services: ##
-
-The application is available with a PHP or Java services:
-
-- The PHP services are available in the api directory of this repository. The RESTful services are implemented in PHP using the [Slim framework](http://www.slimframework.com/) (also included in the api directory).
-- The Java back-end is available in [this repository](https://github.com/ccoenraets/backbone-jax-cellar). The RESTful services are implemented in Java using JAX-RS.
-
-Your feedback is appreciated. Please post your questions and comments in the blog posts referenced above.
+1. [Backbone.js + Twitter Bootstrap implementation](https://github.com/ccoenraets/backbone-cellar/tree/master/bootstrap)
+2. [Backbone.js Tutorial](https://github.com/ccoenraets/backbone-cellar/tree/master/tutorial): A four part Backbone.js tutorial
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -112,7 +112,7 @@ function findByName($query) {
$stmt->execute();
$wines = $stmt->fetchAll(PDO::FETCH_OBJ);
$db = null;
- echo '{"wine": ' . json_encode($wines) . '}';
+ echo json_encode($wines);
} catch(PDOException $e) {
echo '{"error":{"text":'. $e->getMessage() .'}}';
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -6,6 +6,8 @@ window.WineCollection = Backbone.Collection.extend({
url:"../api/wines"
});
+
+// Views
window.WineListView = Backbone.View.extend({
tagName:'ul',
@@ -23,8 +25,6 @@ window.WineListView = Backbone.View.extend({
});
-
-// Views
window.WineListItemView = Backbone.View.extend({
tagName:"li",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
Diff not rendered.
Diff not rendered.
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
View
Diff not rendered.
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
View
Diff not rendered.
Diff not rendered.
View
Diff not rendered.
Diff not rendered.
Diff not rendered.
View
@@ -0,0 +1,33 @@
+# Backbone.js Wine Cellar Tutorial #
+
+"Backbone Cellar" is a sample [Backbone.js](http://documentcloud.github.com/backbone/) application.
+The application allows you to browse through a list of wines, as well as add, update, and delete wines.
+
+"Backbone Cellar" is the application used in the four-part tutorial posted here: [part 1](http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tutorial-part-1-getting-started/), [part 2](http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tutorial-part-2-crud/), [part 3](http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tutorial-part-3-deep-linking-and-application-states/), [part 4](http://coenraets.org/blog/2012/01/backbone-js-lessons-learned-and-improved-sample-app/).
+
+If you just want to look at the final version of the application, look in the [final](https://github.com/ccoenraets/backbone-cellar/tree/master/final) directory.
+
+You can also follow the tutorial and build the application step by step:
+
+- In Part 1 ([doc](http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tutorial-part-1-getting-started/) - [code](https://github.com/ccoenraets/backbone-cellar/tree/master/part1)), you define the basic infrastructure. You create a “read-only” version of the application: you’ll be able to retrieve a list of wine and get the details of each wine.
+- In Part 2 ([doc](http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tutorial-part-2-crud/) - [code](https://github.com/ccoenraets/backbone-cellar/tree/master/part2)), you add the code to add, update and delete wines. You leverage Backbone’s powerful REST integration.
+- In Part 3 ([doc](http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tutorial-part-3-deep-linking-and-application-states/) - [code](https://github.com/ccoenraets/backbone-cellar/tree/master/part3)), you add complete support for history management and deep linking.
+- In Part 4 ([doc](http://coenraets.org/blog/2012/01/backbone-js-lessons-learned-and-improved-sample-app/) - [code](https://github.com/ccoenraets/backbone-cellar/tree/master/final)), you load templates asynchronously and implement a few best practices.
+
+The UI is intentionally plain to keep the focus on the architecture of the application.
+
+## Set Up: ##
+
+1. Create a MySQL database name "cellar".
+2. Execute cellar.sql to create and populate the "wine" table:
+
+ mysql cellar -uroot < cellar.sql
+
+## Services: ##
+
+The application is available with a PHP or Java services:
+
+- The PHP services are available in the api directory of this repository. The RESTful services are implemented in PHP using the [Slim framework](http://www.slimframework.com/) (also included in the api directory).
+- The Java back-end is available in [this repository](https://github.com/ccoenraets/backbone-jax-cellar). The RESTful services are implemented in Java using JAX-RS.
+
+Your feedback is appreciated. Please post your questions and comments in the blog posts referenced above.

0 comments on commit 08070cb

Please sign in to comment.