# API Client for Javascript Installation

cytomine/Cytomine-js-client | Last release: v1.4.0

# How to install

# Install npm on your machine

You will find on the official website (opens new window) the procedure to install the node package manager.
For Linux, the nodejs and npm packages are commonly available with your package manager.

For example, on Ubuntu, you can install npm with the following command:

    apt install nodejs npm
1

# Install the client

If you want the last version registered on npm, run the command:

    npm install cytomine-client
1

Else, for the latest developed version, we need to fetch the client code source before compile it. Be sure to have the git client installed :

    git clone https://github.com/cytomine/Cytomine-js-client.git
    cd Cytomine-js-client
    npm install
    npm run build
1
2
3
4

For more instructions, please look at our GitHub repository (opens new window).

# How to use it

Once you got the main concept of all the External clients, you can take a look at the tests (opens new window) that use the javascript client for various interaction with a Cytomine instance.
Note that the javascript client is used in production into our official web front-end (opens new window).