{"action":"created","issue":{"url":"https://api.github.com/repos/DenisVuyka/ionic-alfresco-app/issues/1","repository_url":"https://api.github.com/repos/DenisVuyka/ionic-alfresco-app","labels_url":"https://api.github.com/repos/DenisVuyka/ionic-alfresco-app/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/DenisVuyka/ionic-alfresco-app/issues/1/comments","events_url":"https://api.github.com/repos/DenisVuyka/ionic-alfresco-app/issues/1/events","html_url":"https://github.com/DenisVuyka/ionic-alfresco-app/issues/1","id":176648477,"number":1,"title":"Road to deploy app failure","user":{"login":"slaptot","id":1463911,"avatar_url":"https://avatars.githubusercontent.com/u/1463911?v=3","gravatar_id":"","url":"https://api.github.com/users/slaptot","html_url":"https://github.com/slaptot","followers_url":"https://api.github.com/users/slaptot/followers","following_url":"https://api.github.com/users/slaptot/following{/other_user}","gists_url":"https://api.github.com/users/slaptot/gists{/gist_id}","starred_url":"https://api.github.com/users/slaptot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slaptot/subscriptions","organizations_url":"https://api.github.com/users/slaptot/orgs","repos_url":"https://api.github.com/users/slaptot/repos","events_url":"https://api.github.com/users/slaptot/events{/privacy}","received_events_url":"https://api.github.com/users/slaptot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-13T14:00:56Z","updated_at":"2016-09-13T14:11:37Z","closed_at":null,"body":"Hola!\r\nthank you for integrate alfresco-js-api with IONIC, it's awesome! But I can't do it work :( .\r\nI would like to share with you my road to try start the project, and you could add documentation in your readme.md.\r\n\r\n1. First of all, when I try to install packages and launch \"ionic serve\" get this error in gulpfile:\r\n`There is an error in your gulpfile: \r\nSyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode\r\n    at exports.runInThisContext (vm.js:53:16)\r\n    at Module._compile (module.js:413:25)\r\n    at Object.Module._extensions..js (module.js:452:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Module.require (module.js:365:17)\r\n    at require (module.js:384:17)\r\n    at Object.<anonymous> (/Users/alberto/CordovaDev/ionic-alfresco-app/gulpfile.js:8:25)\r\n    at Module._compile (module.js:434:26)\r\n    at Object.Module._extensions..js (module.js:452:10)\r\n`\r\n module \"@DenisVuyka/ionic-gulp-build-typescript\" file index.js should prepend \"use strict\"; \r\n\r\n2. alfresco-js-api module works on alfresco 5.2, so you should warn in your readme.md in order to get it working. Latest EarlyAccess versions \"[https://wiki.alfresco.com/wiki/Community_file_list_201606-EA]\r\n\r\nUsing postman I can do login, but using the app from Chrome Browser or Hybrid App, I get 403 error:\r\n\r\n`XMLHttpRequest cannot load http://localhost:8088/alfresco/api/-default-/public/authentication/versions/1/tickets. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access. The response had HTTP status code 403.`\r\n\r\nI test it with other computer (same network) alfresco instance, without luck.\r\n\r\nCould you please provide the way to avoid CORS in the app using alfresco local instance?\r\n\r\nKind Regards,\r\nAlberto\r\n"},"comment":{"url":"https://api.github.com/repos/DenisVuyka/ionic-alfresco-app/issues/comments/246694038","html_url":"https://github.com/DenisVuyka/ionic-alfresco-app/issues/1#issuecomment-246694038","issue_url":"https://api.github.com/repos/DenisVuyka/ionic-alfresco-app/issues/1","id":246694038,"user":{"login":"DenisVuyka","id":503991,"avatar_url":"https://avatars.githubusercontent.com/u/503991?v=3","gravatar_id":"","url":"https://api.github.com/users/DenisVuyka","html_url":"https://github.com/DenisVuyka","followers_url":"https://api.github.com/users/DenisVuyka/followers","following_url":"https://api.github.com/users/DenisVuyka/following{/other_user}","gists_url":"https://api.github.com/users/DenisVuyka/gists{/gist_id}","starred_url":"https://api.github.com/users/DenisVuyka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DenisVuyka/subscriptions","organizations_url":"https://api.github.com/users/DenisVuyka/orgs","repos_url":"https://api.github.com/users/DenisVuyka/repos","events_url":"https://api.github.com/users/DenisVuyka/events{/privacy}","received_events_url":"https://api.github.com/users/DenisVuyka/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T14:11:37Z","updated_at":"2016-09-13T14:11:37Z","body":"Hello Alberto,\r\n\r\nThere are several prerequisites I had to mention in the readme, thanks for pointing out.\r\n\r\n- You need ionic 2 (beta)\r\n- As per `Angular 2` dependency there's a node.js constraint\r\n\r\n>Verify that you are running at least node v4.x.x and npm 3.x.x by running node -v and npm -v in a > terminal/console window. Older versions produce errors.\r\n\r\nI am using node v6.5.0 but may setup Travis later on to check earlier versions as well. \r\n\r\n- `alfresco-js-api` indeed requires `alfresco 5.2`\r\n- You can get more details on CORS within our Angular 2 components docs, [prerequisites page] (https://github.com/Alfresco/alfresco-ng2-components/blob/master/PREREQUISITES.md)\r\n\r\nThis project is still at very early stages so more content and details to be added,\r\n\r\nRegards,\r\nDenys"}}
{"actor":{"display_login":"DenisVuyka"}}