Setup and dependency installations

(Windows)

For a quick installation guide on windows, you can use the blog from tree house here. You basically download the .msi file and run the install process.

You will need to restart your machine to use NodeJS. For editing your code, download a text editor, for example sublime, atom, vim.

STEP 1: Check if NodeJS and NPM are installed on your system. Run this commands on your terminal:

>node --version

>npm --version

STEP 2: Start developing

To start working on our API’s you need to create a folder, and create a package.json file. Also install the Africa’s Talking API gateway. Use NPM.

First create a working directory:

>md projectName

>cd projectName\

projectName> npm init

projectName> npm install --save africastalkinggateway

With your environment set up, you are now ready to start writing your application.

(Linux - *unix variants / mac)

Install the NodeJS version that is available in the repository. You can use the great guide from DigitalOcean here.

STEP 1: Install NodeJS and NPM

$ sudo apt update

$ sudo apt install nodejs && apt install npm

STEP 2: Check that NodeJS and NPM are installed on your system

$ node --version

$ npm --version

STEP 3: Start developing

To start working on our API’s you need to create a folder, and create a package.json file. Also install the Africa’s Talking API gateway. Use NPM.

$mkdir projectName

$cd

$cd projectName

projectName$ npm init

projectName$ npm install --save africastalking

With your environment set up, you are now ready to start writing your application.

results matching ""

    No results matching ""