{"action":"created","comment":{"url":"https://api.github.com/repos/strongloop/loopback.io/pulls/comments/144136823","pull_request_review_id":68752755,"id":144136823,"diff_hunk":"@@ -46,12 +54,67 @@ const app = new Application({\n   await app.start();\n   console.log(`REST server listening on port ${server.getSync('rest.port')}`);\n })();\n+\n+```\n+\n+Next, create a file called tsconfig.json to indicate that this is a TypeScript project and specify the TypeScript compiler options required.  For more details, see [TypeScript documentation](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html).\n+\n+{% include code-caption.html content=\"tsconfig.json\" %}\n+```\n+{\n+  \"compilerOptions\": {\n+    /* Basic Options */\n+    \"target\": \"es2017\",                          \n+    \"module\": \"commonjs\",                     \n+\n+    /* Experimental Options */\n+    \"experimentalDecorators\": true,\n+    \"emitDecoratorMetadata\": true\n+  }\n+}\n+```\n+\n+Finally, create a file called package.json. \n+\n+{% include code-caption.html content=\"package.json\" %}\n+```\n+{\n+  \"name\": \"getting-started\",\n+  \"description\": \"Getting Started for LoopBack 4\",\n+  \"version\": \"1.0.0\",\n+  \"scripts\": {\n+    \"start\": \"tsc && node index.js\"\n+  },\n+  \"dependencies\": {\n+    \"@loopback/core\": \"^4.0.0-alpha.16\",\n+    \"@loopback/rest\": \"^4.0.0-alpha.3\"\n+  },\n+  \"devDependencies\": {\n+    \"@types/node\": \"^8.0.34\",\n+    \"typescript\": \"^2.5.3\"\n+  }\n+}\n+```\n+\n+### Running the application\n+\n+To install the required packages, enter:\n+```\n+npm install\n ```\n \n-The example above creates an `Application` and a `RestServer` that responds to all HTTP requests with the text \"Hello World\".\n+To run the application, enter:\n+```\n+npm start\n+```\n+\n+On another terminal, enter:\n+```\n+curl http://localhost:3000/helloworld\n+```","path":"pages/en/lb4/Getting-started.md","position":82,"original_position":82,"commit_id":"5ff32b96916378f0bcbed716dba40becb543136c","original_commit_id":"5ff32b96916378f0bcbed716dba40becb543136c","user":{"login":"crandmck","id":2925364,"avatar_url":"https://avatars2.githubusercontent.com/u/2925364?v=4","gravatar_id":"","url":"https://api.github.com/users/crandmck","html_url":"https://github.com/crandmck","followers_url":"https://api.github.com/users/crandmck/followers","following_url":"https://api.github.com/users/crandmck/following{/other_user}","gists_url":"https://api.github.com/users/crandmck/gists{/gist_id}","starred_url":"https://api.github.com/users/crandmck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crandmck/subscriptions","organizations_url":"https://api.github.com/users/crandmck/orgs","repos_url":"https://api.github.com/users/crandmck/repos","events_url":"https://api.github.com/users/crandmck/events{/privacy}","received_events_url":"https://api.github.com/users/crandmck/received_events","type":"User","site_admin":false},"body":"Is there an advantage to using `curl` vs. just loading `http://localhost:3000/helloworld` in a browser?\r\nPerhaps just add:\r\n```\r\n\"... or load http://localhost:3000/helloworld in your web browser.\"","created_at":"2017-10-11T21:08:59Z","updated_at":"2017-10-11T21:09:14Z","html_url":"https://github.com/strongloop/loopback.io/pull/477#discussion_r144136823","pull_request_url":"https://api.github.com/repos/strongloop/loopback.io/pulls/477","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/strongloop/loopback.io/pulls/comments/144136823"},"html":{"href":"https://github.com/strongloop/loopback.io/pull/477#discussion_r144136823"},"pull_request":{"href":"https://api.github.com/repos/strongloop/loopback.io/pulls/477"}}},"pull_request":{"url":"https://api.github.com/repos/strongloop/loopback.io/pulls/477","id":145546131,"html_url":"https://github.com/strongloop/loopback.io/pull/477","diff_url":"https://github.com/strongloop/loopback.io/pull/477.diff","patch_url":"https://github.com/strongloop/loopback.io/pull/477.patch","issue_url":"https://api.github.com/repos/strongloop/loopback.io/issues/477","number":477,"state":"open","locked":false,"title":"docs: change getting started example","user":{"login":"dhmlau","id":25489897,"avatar_url":"https://avatars3.githubusercontent.com/u/25489897?v=4","gravatar_id":"","url":"https://api.github.com/users/dhmlau","html_url":"https://github.com/dhmlau","followers_url":"https://api.github.com/users/dhmlau/followers","following_url":"https://api.github.com/users/dhmlau/following{/other_user}","gists_url":"https://api.github.com/users/dhmlau/gists{/gist_id}","starred_url":"https://api.github.com/users/dhmlau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhmlau/subscriptions","organizations_url":"https://api.github.com/users/dhmlau/orgs","repos_url":"https://api.github.com/users/dhmlau/repos","events_url":"https://api.github.com/users/dhmlau/events{/privacy}","received_events_url":"https://api.github.com/users/dhmlau/received_events","type":"User","site_admin":false},"body":"Modify the getting started page:\r\n- [x] add installation instructions\r\n- [x] change the example app so that it can be run simply by following the instructions.\r\n\r\nconnect to: https://github.com/strongloop/loopback-next/issues/624","created_at":"2017-10-09T20:57:01Z","updated_at":"2017-10-11T21:09:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b83ff7560d995dad9b9729f0376e3ad696afa2ab","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/strongloop/loopback.io/pulls/477/commits","review_comments_url":"https://api.github.com/repos/strongloop/loopback.io/pulls/477/comments","review_comment_url":"https://api.github.com/repos/strongloop/loopback.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strongloop/loopback.io/issues/477/comments","statuses_url":"https://api.github.com/repos/strongloop/loopback.io/statuses/5ff32b96916378f0bcbed716dba40becb543136c","head":{"label":"strongloop:fix-getting-started","ref":"fix-getting-started","sha":"5ff32b96916378f0bcbed716dba40becb543136c","user":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars1.githubusercontent.com/u/3020012?v=4","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"repo":{"id":16320387,"name":"loopback.io","full_name":"strongloop/loopback.io","owner":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars1.githubusercontent.com/u/3020012?v=4","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongloop/loopback.io","description":"LoopBack project site - now with documentation!","fork":false,"url":"https://api.github.com/repos/strongloop/loopback.io","forks_url":"https://api.github.com/repos/strongloop/loopback.io/forks","keys_url":"https://api.github.com/repos/strongloop/loopback.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/loopback.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/loopback.io/teams","hooks_url":"https://api.github.com/repos/strongloop/loopback.io/hooks","issue_events_url":"https://api.github.com/repos/strongloop/loopback.io/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/loopback.io/events","assignees_url":"https://api.github.com/repos/strongloop/loopback.io/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/loopback.io/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/loopback.io/tags","blobs_url":"https://api.github.com/repos/strongloop/loopback.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/loopback.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/loopback.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/loopback.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/loopback.io/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/loopback.io/languages","stargazers_url":"https://api.github.com/repos/strongloop/loopback.io/stargazers","contributors_url":"https://api.github.com/repos/strongloop/loopback.io/contributors","subscribers_url":"https://api.github.com/repos/strongloop/loopback.io/subscribers","subscription_url":"https://api.github.com/repos/strongloop/loopback.io/subscription","commits_url":"https://api.github.com/repos/strongloop/loopback.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/loopback.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/loopback.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/loopback.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/loopback.io/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/loopback.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/loopback.io/merges","archive_url":"https://api.github.com/repos/strongloop/loopback.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/loopback.io/downloads","issues_url":"https://api.github.com/repos/strongloop/loopback.io/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/loopback.io/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/loopback.io/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/loopback.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/loopback.io/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/loopback.io/releases{/id}","deployments_url":"https://api.github.com/repos/strongloop/loopback.io/deployments","created_at":"2014-01-28T18:00:00Z","updated_at":"2017-10-11T05:49:15Z","pushed_at":"2017-10-11T20:37:16Z","git_url":"git://github.com/strongloop/loopback.io.git","ssh_url":"git@github.com:strongloop/loopback.io.git","clone_url":"https://github.com/strongloop/loopback.io.git","svn_url":"https://github.com/strongloop/loopback.io","homepage":"http://loopback.io","size":23659,"stargazers_count":96,"watchers_count":96,"language":"CSS","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":208,"mirror_url":null,"open_issues_count":26,"forks":208,"open_issues":26,"watchers":96,"default_branch":"gh-pages"}},"base":{"label":"strongloop:gh-pages","ref":"gh-pages","sha":"a8729d1de7bcf758bf938d5150ed8766c69ca048","user":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars1.githubusercontent.com/u/3020012?v=4","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"repo":{"id":16320387,"name":"loopback.io","full_name":"strongloop/loopback.io","owner":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars1.githubusercontent.com/u/3020012?v=4","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongloop/loopback.io","description":"LoopBack project site - now with documentation!","fork":false,"url":"https://api.github.com/repos/strongloop/loopback.io","forks_url":"https://api.github.com/repos/strongloop/loopback.io/forks","keys_url":"https://api.github.com/repos/strongloop/loopback.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/loopback.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/loopback.io/teams","hooks_url":"https://api.github.com/repos/strongloop/loopback.io/hooks","issue_events_url":"https://api.github.com/repos/strongloop/loopback.io/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/loopback.io/events","assignees_url":"https://api.github.com/repos/strongloop/loopback.io/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/loopback.io/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/loopback.io/tags","blobs_url":"https://api.github.com/repos/strongloop/loopback.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/loopback.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/loopback.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/loopback.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/loopback.io/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/loopback.io/languages","stargazers_url":"https://api.github.com/repos/strongloop/loopback.io/stargazers","contributors_url":"https://api.github.com/repos/strongloop/loopback.io/contributors","subscribers_url":"https://api.github.com/repos/strongloop/loopback.io/subscribers","subscription_url":"https://api.github.com/repos/strongloop/loopback.io/subscription","commits_url":"https://api.github.com/repos/strongloop/loopback.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/loopback.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/loopback.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/loopback.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/loopback.io/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/loopback.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/loopback.io/merges","archive_url":"https://api.github.com/repos/strongloop/loopback.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/loopback.io/downloads","issues_url":"https://api.github.com/repos/strongloop/loopback.io/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/loopback.io/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/loopback.io/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/loopback.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/loopback.io/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/loopback.io/releases{/id}","deployments_url":"https://api.github.com/repos/strongloop/loopback.io/deployments","created_at":"2014-01-28T18:00:00Z","updated_at":"2017-10-11T05:49:15Z","pushed_at":"2017-10-11T20:37:16Z","git_url":"git://github.com/strongloop/loopback.io.git","ssh_url":"git@github.com:strongloop/loopback.io.git","clone_url":"https://github.com/strongloop/loopback.io.git","svn_url":"https://github.com/strongloop/loopback.io","homepage":"http://loopback.io","size":23659,"stargazers_count":96,"watchers_count":96,"language":"CSS","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":208,"mirror_url":null,"open_issues_count":26,"forks":208,"open_issues":26,"watchers":96,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/strongloop/loopback.io/pulls/477"},"html":{"href":"https://github.com/strongloop/loopback.io/pull/477"},"issue":{"href":"https://api.github.com/repos/strongloop/loopback.io/issues/477"},"comments":{"href":"https://api.github.com/repos/strongloop/loopback.io/issues/477/comments"},"review_comments":{"href":"https://api.github.com/repos/strongloop/loopback.io/pulls/477/comments"},"review_comment":{"href":"https://api.github.com/repos/strongloop/loopback.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strongloop/loopback.io/pulls/477/commits"},"statuses":{"href":"https://api.github.com/repos/strongloop/loopback.io/statuses/5ff32b96916378f0bcbed716dba40becb543136c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"crandmck"}}