Step 1. Setting up the environment

Before we can start writing-up some microservices, we’ll need to install a few mandatory prerequisites.

Compiler and IDE

First and foremost - we’ll need a compiler for your programming language of choice, as well as some sort of code editor. In our examples, we usually use Visual Studio Code, but any fitting IDE will do.

For working with the Node.js programming language, you’ll need to perform its installation and setup the environment. To do this, download and install Node.js from their official site https://nodejs.org/en/download/ . Select the download that corresponds to the operating system you’re using, and follow the installation instructions listed on their site.

Once installed, check that the installation was completed successfully by running the following command from your console:

node -version

If everything was installed successfully, the screen will display the latest version of the Node.js programming language. We’ll be needing a few additional instruments - use the following commands to install them as well:

# Install typescript compiler
npm install typescript -g
# Install typescript definitions utility
npm install tsd -g 
# Install typescript api document generator
npm install typedoc -g
# Install mocha test runner
npm install mocha -g

For working with the Golang programming language, you’ll need to perform its installation and setup the environment. To do this, download and install Golang from their official site https://golang.org/dl/ . Select the download that corresponds to the operating system you’re using, and follow the installation instructions listed on their site.

Once installed, check that the installation was completed successfully by running the following command from your console:

go version

If everything was installed successfully, the screen will display the latest version of the Golang programming language.

Not available

For working with the Python programming language, you’ll need to perform its installation and setup the environment. To do this, download and install Python from their official site . Select the download that corresponds to the operating system you’re using, and follow the installation instructions listed on their site.

Once installed, check that the installation was completed successfully by running the following command from your console:

python --version
Not available

Now our environment is ready. Continue on to Step 2 - Creating the Project’s Structure

Step 2 - Creating the Project’s Structure