{"action":"created","issue":{"url":"https://api.github.com/repos/Esri/application-boilerplate-js/issues/86","repository_url":"https://api.github.com/repos/Esri/application-boilerplate-js","labels_url":"https://api.github.com/repos/Esri/application-boilerplate-js/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/Esri/application-boilerplate-js/issues/86/comments","events_url":"https://api.github.com/repos/Esri/application-boilerplate-js/issues/86/events","html_url":"https://github.com/Esri/application-boilerplate-js/pull/86","id":167883849,"number":86,"title":"Proposal for strong decoupling between boilerplate and app that uses it","user":{"login":"MikeTschudi","id":2125181,"avatar_url":"https://avatars.githubusercontent.com/u/2125181?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeTschudi","html_url":"https://github.com/MikeTschudi","followers_url":"https://api.github.com/users/MikeTschudi/followers","following_url":"https://api.github.com/users/MikeTschudi/following{/other_user}","gists_url":"https://api.github.com/users/MikeTschudi/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeTschudi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeTschudi/subscriptions","organizations_url":"https://api.github.com/users/MikeTschudi/orgs","repos_url":"https://api.github.com/users/MikeTschudi/repos","events_url":"https://api.github.com/users/MikeTschudi/events{/privacy}","received_events_url":"https://api.github.com/users/MikeTschudi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-27T15:30:11Z","updated_at":"2016-07-28T16:10:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Esri/application-boilerplate-js/pulls/86","html_url":"https://github.com/Esri/application-boilerplate-js/pull/86","diff_url":"https://github.com/Esri/application-boilerplate-js/pull/86.diff","patch_url":"https://github.com/Esri/application-boilerplate-js/pull/86.patch"},"body":"#85 "},"comment":{"url":"https://api.github.com/repos/Esri/application-boilerplate-js/issues/comments/235943846","html_url":"https://github.com/Esri/application-boilerplate-js/pull/86#issuecomment-235943846","issue_url":"https://api.github.com/repos/Esri/application-boilerplate-js/issues/86","id":235943846,"user":{"login":"alaframboise","id":2539681,"avatar_url":"https://avatars.githubusercontent.com/u/2539681?v=3","gravatar_id":"","url":"https://api.github.com/users/alaframboise","html_url":"https://github.com/alaframboise","followers_url":"https://api.github.com/users/alaframboise/followers","following_url":"https://api.github.com/users/alaframboise/following{/other_user}","gists_url":"https://api.github.com/users/alaframboise/gists{/gist_id}","starred_url":"https://api.github.com/users/alaframboise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alaframboise/subscriptions","organizations_url":"https://api.github.com/users/alaframboise/orgs","repos_url":"https://api.github.com/users/alaframboise/repos","events_url":"https://api.github.com/users/alaframboise/events{/privacy}","received_events_url":"https://api.github.com/users/alaframboise/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T16:10:42Z","updated_at":"2016-07-28T16:10:42Z","body":"@driskull @MikeTschudi Just started working with this yesterday. Integrating your app code and references is definitely tricky.\r\n\r\nQuestion: Where do we recommend people to put their app code? main.js? To configure the app and page, some code needs to be applied to the document framework e.g. CSS styles, title, description... and other code needs to be applied to the view properties e.g. padding before creation. Right now I'm just putting everything in main.js. I was looking for an app.js...\r\n\r\nAnd I'm still trying to figure out the initialization (below). I guess I expected to:\r\n\r\n1. Create a boilerplate object().\r\n2. Get a webItem back.\r\n3. Do my app template stuff \r\n a) Set document HTML/CSS and element \r\n b) Load map or scene\r\n c) Other app specific stuff...\r\n\r\n```\r\n   require([\r\n      \"boilerplate\",\r\n      \"dojo/text!boilerplate/settings.json\",\r\n      \"application\"\r\n    ], function (\r\n      Boilerplate,\r\n      boilerplateSettings,\r\n      applicationMain\r\n    ) {\r\n\r\n      // create my main application. Start placing your logic in the main.js file.\r\n      var mainApp = new applicationMain();\r\n\r\n      // create the template. This will take care of all the logic required for template applications. If unsuccessful, we're calling error on main. Otherwise, we call startup on main.\r\n      new Boilerplate(JSON.parse(boilerplateSettings)).then(mainApp.init.bind(mainApp), mainApp.reportError.bind(mainApp));\r\n\r\n    });\r\n```"}}
{"actor":{"display_login":"alaframboise"}}