Get Started with the API

The RESTful API makes it possible to use a wide variety of technologies to utilize the MIC platform. As long as you can make HTTP-calls you’re good to go.

In the following workshops we’ll use Node.js with the Vue.js JavaScript framework. It’s fast to get started with and building a functioning application.

Installing Node.js

The easies way of getting Node.js is to install the Node Version Manager (NVM). Head over to their GitHub page for instructions on how to install it for your preferred platform.

If running a Linux distribution it should be enough running the following command:

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

Verify your installation:

nvm --version

Download, compile and install the latest release of Node.js:

nvm install node

Verify your Node.js installation:

node --version

Verify your Node Package Manager (NPM) installation:

npm --version

Installing Vue.js

Vue.js is a lightweight JavaScript framework similar to what React and Angular are. We’ll use it to scaffold and create web applications in no time.

Install the Vue CLI:

npm install -g @vue/cli

Verify your installation:

vue --version

Verify

Verify that you can run node, npm and vue as commands in a terminal before moving on to Workshop 1.