Skip to content

Pre-requisites

In order to be able to run a NodeJS application for ONEm on your machine please make sure you have installed the following:

  • NodeJS (v8.0.0 or above)
  • git
  • ngrok
  • optionally, an IDE that supports JavaScript language if you want to edit the source code

Install git

Run the following command in your terminal

  • Debian, Ubuntu, Deepin, LinuxMint:

    $ sudo apt-get install git
    
  • Centos, Fedora:

    $ sudo yum install git
    
  • Mac OS:

    $ brew install git
    
  • Windows:

    There are a few ways to install Git on Windows.

    The official build is available on the Git website; go to git-scm.com/download/win and the download will start automatically. Run the setup and follow the instructions.

    If you use Chocolatey manager on Windows, then you can install the git package as instructed here. Note that the Chocolatey package is community maintained.

Install NodeJS

We will use nvm to easily install any version of NodeJS. You can install it directly on your machine following the official page.

Install nvm:

  • Debian, Ubuntu, Deepin, LinuxMint, CentOS, Fedora, Mac OS:

    Please follow the nvm installing steps as provided by nvm repo.

  • Windows:

    Please note that nvm does not support Windows. If you want to use a version manager for Windows, you can give it a try to nvm-windows or nodist.

    If you use Chocolatey manager on Windows, then you can also use the nvm package as instructed here.

Install Node >= 8.1.x

  • Debian, Ubuntu, Deepin, LinuxMint, CentOS, Fedora, Mac OS:

    Example:

    $ nvm install 10
    

    Please note that nvm install node will install the latest Node version.

  • Windows:

    Download the latest Node version available for your Windows from official website. Run the installer following the steps and that should be all.

Install ngrok

Please download and install ngrok as described on the official website.

Install an IDE

If you don't already have a preferred IDE, there is plenty you can choose from. Here is a list of IDEs in no particular order: