{"id":260,"date":"2014-03-04T11:34:51","date_gmt":"2014-03-04T11:34:51","guid":{"rendered":"http:\/\/nikola-breznjak.com\/blog\/?p=260"},"modified":"2015-08-20T11:46:54","modified_gmt":"2015-08-20T11:46:54","slug":"using-nodemon","status":"publish","type":"post","link":"https:\/\/nikola-breznjak.com\/blog\/javascript\/nodejs\/using-nodemon\/","title":{"rendered":"How to use nodemon"},"content":{"rendered":"<p><a href=\"http:\/\/nodemon.io\/\">Nodemon<\/a> is a utility that will monitor for any changes in your source and automatically restart your server. Perfect for development. Install it using npm.<\/p>\n<pre><code>npm install -g nodemon<\/code><\/pre>\n<p>Once installed, instead of\u00a0<span class=\"lang:default decode:true  crayon-inline \">node app.js<\/span>\u00a0\u00a0use\u00a0<span class=\"lang:default decode:true  crayon-inline \">nodemon app.js<\/span>\u00a0. It will save you a lot of time in the long run, because you won&#8217;t need to manually restart the server each time you make a change.<\/p>\n<p><strong>edit:<\/strong> These days I&#8217;m using a ever so slightly more popular <a href=\"http:\/\/www.nikola-breznjak.com\/blog\/nodejs\/using-pm2-to-run-your-node-js-apps-like-a-pro\/\">PM2<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nodemon is a utility that will monitor for any changes in your source and automatically restart your server. Perfect for development. Install it using npm. npm install -g&hellip;<\/p>\n","protected":false},"author":1,"featured_media":262,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,15],"tags":[],"class_list":["post-260","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nodejs","category-quick-tips"],"_links":{"self":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/comments?post=260"}],"version-history":[{"count":3,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/260\/revisions"}],"predecessor-version":[{"id":2131,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/260\/revisions\/2131"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media\/262"}],"wp:attachment":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media?parent=260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/categories?post=260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/tags?post=260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}