{"id":616,"date":"2019-03-12T23:19:42","date_gmt":"2019-03-13T06:19:42","guid":{"rendered":"https:\/\/doubleecpu.com\/?page_id=616"},"modified":"2019-04-01T18:04:12","modified_gmt":"2019-04-02T01:04:12","slug":"nodejs-app","status":"publish","type":"page","link":"https:\/\/doubleecpu.com\/index.php\/raspian-linux-programs\/javascript-2\/nodejs-app\/","title":{"rendered":"NodeJs App"},"content":{"rendered":"\n<p>Simple App based on <a href=\"https:\/\/www.npmjs.com\/package\/express\">npm express framework<\/a><br>initialize the app folder to create the the package.json<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">npm init<br>...utility will walk you through creating a package.json file...<br>name: (NodePiApp) NodePiApp<br>version: (0.0.0) 1.0.0<br>description: Simple nodejs npm app<br>entry point: (index.js) <br>test command: <br>git repository: <br>keywords: express<br>author: Gi.....el<br>license: (ISC) MIT<br><br>About to write to \/home\/pi\/Public\/NodePiApp\/package.json:<\/pre>\n\n\n\n<p>Add npm user data<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">npm adduser <br>Username: gilmedel<br>Password: <br>Email: (this IS public) bi....@...mail.com<\/pre>\n\n\n\n<p>install the the package using the &#8211;save option which saves the version number and creates dependency  in the package.json file <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">npm install express --save<\/pre>\n\n\n\n<p>After installation the following should appear in the package.json file:<br>&#8220;dependencies&#8221;: {    &#8220;express&#8221;: &#8220;^4.16.4&#8221;  }, <\/p>\n\n\n\n<p>Verify publishing app to npm repository<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">npm publish<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Simple App based on npm express frameworkinitialize the app folder to create the the package.json npm init&#8230;utility will walk you through creating a package.json file&#8230;name: (NodePiApp) NodePiAppversion: (0.0.0) 1.0.0description: Simple nodejs npm appentry point: (index.js) test command: git repository: keywords: expressauthor: Gi&#8230;..ellicense: (ISC) MITAbout to write to \/home\/pi\/Public\/NodePiApp\/package.json: Add npm user data npm adduser Username: &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/doubleecpu.com\/index.php\/raspian-linux-programs\/javascript-2\/nodejs-app\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;NodeJs App&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":582,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-616","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/616","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/comments?post=616"}],"version-history":[{"count":0,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/616\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/582"}],"wp:attachment":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/media?parent=616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}