From b9b9196f0082f6b68add34c2c71d6202eb461cb7 Mon Sep 17 00:00:00 2001 From: Matthew Whisenhunt Date: Sun, 22 May 2016 11:45:59 -0700 Subject: [PATCH 1/2] Simplfy Step 2. (enyo-dev does come with moonstone-app now) --- .../getting-started/moonstone-app-tutorial.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/developer-guide/getting-started/moonstone-app-tutorial.md b/developer-guide/getting-started/moonstone-app-tutorial.md index a4706da..b5af54c 100644 --- a/developer-guide/getting-started/moonstone-app-tutorial.md +++ b/developer-guide/getting-started/moonstone-app-tutorial.md @@ -34,13 +34,12 @@ obtaining and installing these tools, along with some suggested choices (where appropriate). If you are already familiar with the tools, feel free to install them on your own and move on to step 2. -## 2. Install a moonstone app template +## 2. Create new project with moonstone app template -The `enyo-dev` tool does not include a Moonstone app template but makes it easy to add -custom templates. We'll start by adding a Moonstone template and then use the template -to create our base app. - -TODO: Complete this +``` + enyo init -t moonstone-app moonstone-project + cd moonstone-project +``` ## 3. Set up main view From 5b95547f9085c144f068c062d5b9eb0da7e5f337 Mon Sep 17 00:00:00 2001 From: Matthew Whisenhunt Date: Sun, 22 May 2016 11:46:48 -0700 Subject: [PATCH 2/2] Fix broken link. --- developer-guide/getting-started/moonstone-app-tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/developer-guide/getting-started/moonstone-app-tutorial.md b/developer-guide/getting-started/moonstone-app-tutorial.md index b5af54c..014de44 100644 --- a/developer-guide/getting-started/moonstone-app-tutorial.md +++ b/developer-guide/getting-started/moonstone-app-tutorial.md @@ -567,7 +567,7 @@ the value of `searchText` is altered. Finally, we'll override the collection's `fetch()` function to provide more information to the source about how to retrieve this specific information. Along with the search text, the [Flickr photos search -API](https://www.com/services/api/photos.search.html) requires us +API](https://www.flickr.com/services/api/flickr.photos.search.html) requires us to pass a `method` query string parameter indicating that we want to search photos. There are a number of optional parameters we could specify as well; for this sample, we'll specify a `sort` value (so that we get interesting photos), @@ -633,7 +633,7 @@ our `SearchCollection`, we should get result data loaded into the collection. But there is one final step. If we look at a sample of the [data -returned](https://api.com/services/rest/?method=photos.search&sort=interestingness-desc&per_page=50&text=San%20Francisco&api_key=2a21b46e58d207e4888e1ece0cb149a5&format=json&jsoncallback=enyo_jsonp_callback_0) +returned](https://api.flickr.com/services/rest/?method=flickr.photos.search&sort=interestingness-desc&per_page=50&text=San%20Francisco&api_key=2a21b46e58d207e4888e1ece0cb149a5&format=json&jsoncallback=enyo_jsonp_callback_0) from a call to the API, we can see that it is not actually an array, which is what `enyo/Collection` expects. The array of photo records is actually nested a couple levels down in the object returned: