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
Monthly Archives: October 2018
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
Swagger
What is Swagger?
On the Swagger site we can find the definition of Swagger:
Swagger is the world’s largest framework of API developer tools for the OpenAPI Specification(OAS), enabling development across the entire API lifecycle, from design and documentation, to test and deployment.
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
Microsoft Message Queuing
MSMQ (Microsoft Message Queuing) is a message queue that is available by default as part of Windows. A reliable way of sending and receiving messages across computer systems, MSMQ provides a queue that’s scalable, thread-safe, simple, and convenient to use while at the same time providing you with the opportunity to persist the messages inside the Windows database. Continue reading Microsoft Message Queuing