<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Node.js on Bryan Avery</title><link>https://bryanavery.co.uk/categories/node.js/</link><description>Recent content in Node.js on Bryan Avery</description><generator>Hugo -- gohugo.io</generator><language>en-GB</language><copyright>© 2026 Bryan Avery.</copyright><lastBuildDate>Wed, 17 Oct 2018 11:30:44 +0000</lastBuildDate><atom:link href="https://bryanavery.co.uk/categories/node.js/index.xml" rel="self" type="application/rss+xml"/><item><title>Swagger UI reading YAML file</title><link>https://bryanavery.co.uk/swagger-ui-reading-yaml-file/</link><pubDate>Wed, 17 Oct 2018 11:30:44 +0000</pubDate><guid>https://bryanavery.co.uk/swagger-ui-reading-yaml-file/</guid><description>&lt;p&gt;You’ve been playing with Swagger and can now see the benefits, and you are planning to use a YAML file, now you would like to display it to the outside work, here is a short article explaining all that is required.  This is based on you using Express within Node.js&lt;/p&gt;</description></item><item><title>Edit your Swagger YAML</title><link>https://bryanavery.co.uk/edit-your-swagger-yaml/</link><pubDate>Wed, 17 Oct 2018 10:17:15 +0000</pubDate><guid>https://bryanavery.co.uk/edit-your-swagger-yaml/</guid><description>&lt;p&gt;Once you have installed swagger into your application, using this command:&lt;/p&gt;&#10;&lt;pre&gt;npm install -g swagger&lt;/pre&gt;&#10;&lt;p&gt;To edit you active YAML file just type to following:&lt;/p&gt;&#10;&lt;pre&gt;swagger project edit&lt;/pre&gt;</description></item><item><title>Debugging Node.js with Typescript</title><link>https://bryanavery.co.uk/debugging-node-js-with-typescript/</link><pubDate>Tue, 16 Oct 2018 12:14:28 +0000</pubDate><guid>https://bryanavery.co.uk/debugging-node-js-with-typescript/</guid><description>&lt;p&gt;no need for me to explain what to do when Microsoft already has a very good article on debugging within Visual Studio Code&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://code.visualstudio.com/docs/editor/debugging" rel="noopener" target="_blank"&gt;https://code.visualstudio.com/docs/editor/debugging&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Node.js with Microsoft TypeScript</title><link>https://bryanavery.co.uk/node-js-with-microsoft-typescript/</link><pubDate>Tue, 16 Oct 2018 10:48:51 +0000</pubDate><guid>https://bryanavery.co.uk/node-js-with-microsoft-typescript/</guid><description>&lt;p&gt;Before we start let’s just ask a few questions:&lt;/p&gt;&#10;&lt;h2&gt;Why Typescript?&lt;/h2&gt;&#10;&lt;p class="comments-section"&gt;There are two main goals of TypeScript:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li style="list-style-type: none;"&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Provide an &lt;em&gt;optional type system&lt;/em&gt; for JavaScript.&lt;/li&gt;&#10;&lt;li&gt;Provide planned features from future JavaScript editions to current JavaScript engines&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;&lt;span id="more-1091"&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>RESTfull API using node.js and express.js</title><link>https://bryanavery.co.uk/restfull-api-using-node-js-and-express-js/</link><pubDate>Tue, 16 Oct 2018 08:59:21 +0000</pubDate><guid>https://bryanavery.co.uk/restfull-api-using-node-js-and-express-js/</guid><description>&lt;p&gt;Here is a short article to provide a simple RESTful API using node.js.&lt;span id="more-1087"&gt;&lt;/span&gt;&lt;/p&gt;&#10;&lt;h2&gt;Why use node.js?&lt;/h2&gt;&#10;&lt;p&gt;node.js is super fast and handles asynchronous without having to think about coding, it is javascript based and runs on such a small footprint that it is just the way things should be.&lt;/p&gt;</description></item><item><title>How to handle rejection from a Promise</title><link>https://bryanavery.co.uk/how-to-handle-rejection-from-a-promise/</link><pubDate>Mon, 15 Oct 2018 12:18:46 +0000</pubDate><guid>https://bryanavery.co.uk/how-to-handle-rejection-from-a-promise/</guid><description>&lt;p&gt;A clear rejection is always better than a fake promise, so when dealing with Promises in Node.JS consider the rejection aspect of the promise.&lt;br/&gt;&#10;&lt;span id="more-1077"&gt;&lt;/span&gt;&lt;br/&gt;&#10;It is quite easy to handle, I prefer the Async method of handing promises, as it is much easier to read and understand.&lt;/p&gt;</description></item><item><title>Being true to a Promise in Node.js</title><link>https://bryanavery.co.uk/being-true-to-a-promise-in-node-js/</link><pubDate>Mon, 15 Oct 2018 09:59:48 +0000</pubDate><guid>https://bryanavery.co.uk/being-true-to-a-promise-in-node-js/</guid><description>&lt;p&gt;With Node.js you have the ability to make promises, but what is a promise?&lt;/p&gt;&#10;&lt;p&gt;Here is a definition of a node.js promise&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;‘A promise is an abstraction for asynchronous programming. It’s an object that proxies for the return value or the exception thrown by a function that has to do some asynchronous processing’&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Useful links for Node.js</title><link>https://bryanavery.co.uk/useful-links-for-node-js/</link><pubDate>Mon, 15 Oct 2018 08:30:44 +0000</pubDate><guid>https://bryanavery.co.uk/useful-links-for-node-js/</guid><description>&lt;p&gt;Node.js is a very powerful platform for building server-based applications.&lt;/p&gt;&#10;&lt;p&gt;I have put together a list of very useful links which help with building and working with Node.js&lt;br/&gt;&#10;&lt;span id="more-1038"&gt;&lt;/span&gt;&lt;/p&gt;&#10;&lt;p&gt;Download link for installing Node.js, or use &lt;a href="https://www.dyclassroom.com/howto-mac/how-to-install-nodejs-and-npm-on-mac-using-homebrew" rel="noopener" target="_blank"&gt;Homebrew&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>