{"id":1326,"date":"2019-07-26T00:52:23","date_gmt":"2019-07-26T07:52:23","guid":{"rendered":"https:\/\/doubleecpu.com\/?page_id=1326"},"modified":"2019-09-13T12:53:22","modified_gmt":"2019-09-13T19:53:22","slug":"restifycustomerapinpmsetup","status":"publish","type":"page","link":"https:\/\/doubleecpu.com\/index.php\/shop\/restifycustomerapinpmsetup\/","title":{"rendered":"Restify Cutomer API npm"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">npm Setup<\/h2>\n\n\n\n<p>Create  directory  called restify_customer_api and navigate to the directory using VSCode Terminal. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1111\" height=\"531\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/07\/RestifyCustomerAPINewTerminal.png\" alt=\"\" class=\"wp-image-1344\"\/><\/figure>\n\n\n\n<p>Initialize as a npm directory<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">npm init -y<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"949\" height=\"433\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/07\/RestifyCustomerAPINPMinit.png\" alt=\"\" class=\"wp-image-1346\"\/><\/figure>\n\n\n\n<p>Install npm packages for mongodb and node monitor<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">npm install restify restify-errors mongoose mongoose-timestamp\nnpm install -Dev nodemon <\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1468\" height=\"694\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/07\/RestifyCustomerAPIinstallPackages.png\" alt=\"\" class=\"wp-image-1347\"\/><\/figure>\n\n\n\n<p>Add Script names to package.json<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/07\/RestifyCustomerAPIpackagejson.png\" alt=\"\" class=\"wp-image-1348\" width=\"450\" height=\"218\"\/><\/figure>\n\n\n\n<p>create the script files index.js and config.js <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">touch index.js config.js<\/pre>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/07\/RestifyCustomerAPInewfiles.png\" alt=\"\" class=\"wp-image-1350\" width=\"332\" height=\"230\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/doubleecpu.com\/index.php\/restify-cutomer-api-atlasdb\/\">Create web Database<\/a><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>npm Setup Create directory called restify_customer_api and navigate to the directory using VSCode Terminal. Initialize as a npm directory npm init -y Install npm packages for mongodb and node monitor npm install restify restify-errors mongoose mongoose-timestamp npm install -Dev nodemon Add Script names to package.json create the script files index.js and config.js touch index.js config.js &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/doubleecpu.com\/index.php\/shop\/restifycustomerapinpmsetup\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;Restify Cutomer API npm&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":22,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1326","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/1326","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=1326"}],"version-history":[{"count":0,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/1326\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/22"}],"wp:attachment":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/media?parent=1326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}