The serve for Presence using KNoT.
In order to install the dependencies you only need to run:
npm install
It also need to have installed NodeJS and MongoDB. It's working with NodeJS v8.0.0
and MongoDB v3.12.13
.
config.js
file into/api/config
folder. This file needs to exports a JSON as it shows below.
module.exports = {
db: '', // URL to the database
cesar_server: '', // URL to CESAR server
user_uuid: '', // User UUID
user_token: '', // User Token
thing_uuid: '' // Thing UUID
}
- KNoT-Gateway running and connected to the KNoT-Cloud;
- At least one KNoT-Thing running and connected to KNoT-Gateway;
- MongoDB running (run
mongod
on terminal); - To start the server run
node app.js
ornpm start
;