﻿
{"id":8627,"date":"2018-07-19T06:35:46","date_gmt":"2018-07-19T06:35:46","guid":{"rendered":"http:\/\/www.gencayyildiz.com\/blog\/?p=8627"},"modified":"2018-07-19T06:35:46","modified_gmt":"2018-07-19T06:35:46","slug":"node-js-nodemon-nedir-nasil-kullanilir","status":"publish","type":"post","link":"https:\/\/www.gencayyildiz.com\/blog\/node-js-nodemon-nedir-nasil-kullanilir\/","title":{"rendered":"Node.js &#8211; Nodemon Nedir? Nas\u0131l Kullan\u0131l\u0131r?"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n<p>Merhaba,<\/p>\n<p>Bir \u00f6nceki <a href=\"http:\/\/www.gencayyildiz.com\/blog\/node-jsde-http-sunucusu-olusturalim\/\" rel=\"noopener\" target=\"_blank\">Node.js\u2019de Http Sunucusu Olu\u015ftural\u0131m<\/a> ba\u015fl\u0131kl\u0131 yaz\u0131mda Node.js&#8217;de nas\u0131l server olu\u015fturuldu\u011funu ele alm\u0131\u015ft\u0131k. Bu i\u00e7eri\u011fimizde ise olu\u015fturmu\u015f oldu\u011fumuz server i\u00e7erisindeki \u00e7al\u0131\u015fmalarda bir de\u011fi\u015fiklik s\u00f6z konusu olursa otomatik olarak server\u0131 resetleyecek ara\u00e7 olan Nodemon paketini inceliyor olaca\u011f\u0131z.<\/p>\n<p>Normal \u015fartlarda sunucu kaynak dosyalar\u0131nda de\u011fi\u015fiklik oldu\u011fu zaman bu de\u011fi\u015fiklik otomatik olarak yay\u0131na yans\u0131t\u0131lmamakta, sunucuya reset at\u0131lmas\u0131 gerekmektedir.<br \/>\n<a href=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node.js-\u2013-Nodemon-Nedir-Nas\u0131l-Kullan\u0131l\u0131r.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node.js-\u2013-Nodemon-Nedir-Nas\u0131l-Kullan\u0131l\u0131r.gif\" alt=\"Node.js \u2013 Nodemon Nedir Nas\u0131l Kullan\u0131l\u0131r\" width=\"600\" height=\"143\" class=\"aligncenter size-full wp-image-8629\" \/><\/a><\/p>\n<p>Nodemon arac\u0131 ise manuel olarak sunucuya reset atmam\u0131za gerek kalmaks\u0131z\u0131n yap\u0131lan de\u011fi\u015fiklikler neticesinde otomatik reset i\u015flemini uygulayacak ve de\u011fi\u015fiklikleri yay\u0131na yans\u0131tacakt\u0131r.<\/p>\n<h3>Nodemon Paketinin Kurulumu<\/h3>\n<p>Nodemon arac\u0131n\u0131 kullanabilmek i\u00e7in \u00f6ncelikle ilgili paketin a\u015fa\u011f\u0131daki kod arac\u0131l\u0131\u011f\u0131yla entegre edilmesi gerekmektedir.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm install -g nodemon\r\n<\/pre>\n<p>Paket y\u00fcklemesini ger\u00e7ekle\u015ftirdikten sonra sunucuda Nodemon arac\u0131n\u0131 aktifle\u015ftirmemiz gerekmektedir. Normalde sunucuyu a\u015fa\u011f\u0131daki kod ile yay\u0131na almaktay\u0131z.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnode script\r\n<\/pre>\n<p>Bu kod Nodemon arac\u0131n\u0131 aktifle\u015ftirmeyecektir. Dolay\u0131s\u0131yla a\u015fa\u011f\u0131daki kod ile sunucuya a\u00e7\u0131l\u0131\u015f yaparsak ilgili arac\u0131m\u0131z aktif bir \u015fekilde s\u00fcrece dahil olacakt\u0131r.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnodemon script\r\n<\/pre>\n<p>\u0130\u015fte bu \u015fekilde sunucudaki t\u00fcm de\u011fi\u015fiklikler Nodemon arac\u0131 taraf\u0131ndan takip edilecek ve gerekti\u011fi taktirde sunucu resetlenip yenilikleri hali haz\u0131rda yay\u0131na sunulacakt\u0131r.<br \/>\n<a href=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node.js-\u2013-Nodemon-Nedir-Nas\u0131l-Kullan\u0131l\u0131r-1.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node.js-\u2013-Nodemon-Nedir-Nas\u0131l-Kullan\u0131l\u0131r-1.gif\" alt=\"Node.js \u2013 Nodemon Nedir Nas\u0131l Kullan\u0131l\u0131r\" width=\"600\" height=\"306\" class=\"aligncenter size-full wp-image-8632\" \/><\/a><\/p>\n<p>Sonraki yaz\u0131lar\u0131mda g\u00f6r\u00fc\u015fmek \u00fczere&#8230;<br \/>\n\u0130yi \u00e7al\u0131\u015fmalar&#8230;<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Merhaba, Bir \u00f6nceki Node.js\u2019de Http Sunucusu Olu\u015ftural\u0131m ba\u015fl\u0131kl\u0131 yaz\u0131mda Node.js&#8217;de nas\u0131l server olu\u015fturuldu\u011funu ele alm\u0131\u015ft\u0131k. Bu i\u00e7eri\u011fimizde ise olu\u015fturmu\u015f oldu\u011fumuz server i\u00e7erisindeki \u00e7al\u0131\u015fmalarda bir de\u011fi\u015fiklik s\u00f6z konusu olursa otomatik olarak server\u0131 resetleyecek ara\u00e7 olan&#46;&#46;&#46;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":8600,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2145],"tags":[2147,2486,2485],"class_list":["post-8627","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-node-js","tag-node-js","tag-node-js-nodemon","tag-nodemon-nedir"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/8627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/comments?post=8627"}],"version-history":[{"count":6,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/8627\/revisions"}],"predecessor-version":[{"id":8635,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/8627\/revisions\/8635"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media\/8600"}],"wp:attachment":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media?parent=8627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/categories?post=8627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/tags?post=8627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}