Skip to content

Getting started

Jan Belterman edited this page Jun 8, 2018 · 5 revisions

Installation

The first thing you should do is installing Node and the node package manager. After installing node you should clone the repository from GitHub by using the following command:

$ git clone https://github.com/lVlrChris/IFTTT-CM

After successfully cloning the repository, make sure that you have installed the correct Node packages, by using the following command:

$ npm install

Configuring IFTTT-CM

In order to run the server on the local device, it is recommended to use Nodemon, however, it is also possible to start the server via Node, but it is recommended to use Nodemon for maxmimum productivity. To run the server, make sure that you follow these instructions:

$ nodemon index.js

Or when using Node:

$ node index.js

Sending your first GET request

After running the server, you can validate the use of a correct key by sending the following request:

Method: GET
Endpoint URL: localhost:3000/api/ifttt/v1/status

You will also need the following header information in order to check if the key is valid:

Content-Type: application/json
IFTTT-Service-Key: 12345

After sending the request, you should receive a status 200 OK and a body that looks exactly like this:

Valid key

Great, so now that your own server is running, it is time for the real stuff!

§1 Introduction

§2 Actions

Credits

The Team

Clone this wiki locally