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
Category Archives: Node.js
Edit your Swagger YAML
Once you have installed swagger into your application, using this command:
npm install -g swagger
To edit you active YAML file just type to following:
swagger project edit
Debugging Node.js with Typescript
no need for me to explain what to do when Microsoft already has a very good article on debugging within Visual Studio Code
Node.js with Microsoft TypeScript
Before we start let’s just ask a few questions:
Why Typescript?
There are two main goals of TypeScript:
-
- Provide an optional type system for JavaScript.
- Provide planned features from future JavaScript editions to current JavaScript engines
RESTfull API using node.js and express.js
Here is a short article to provide a simple RESTful API using node.js. Continue reading RESTfull API using node.js and express.js
How to handle rejection from a Promise
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.
Continue reading How to handle rejection from a Promise
Being true to a Promise in Node.js
With Node.js you have the ability to make promises, but what is a promise?
Here is a definition of a node.js promise
‘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’
Useful links for Node.js
Node.js is a very powerful platform for building server-based applications.
I have put together a list of very useful links which help with building and working with Node.js
Continue reading Useful links for Node.js