Skip to content
This repository has been archived by the owner on Jan 22, 2021. It is now read-only.

versx/NodeController

Repository files navigation

REPOSITORY IS NO LONGER MAINTAINED

NodeController

Installation

1.) Clone the repository:

ssh: git clone git@github.com/versx/NodeController
or
http: git clone https://github.com/versx/NodeController

2.) Install dependencies:

npm install

3.) Copy config file:

cp config.json.example config.json

4.) Fill out config options:

{
    "ports": {
        "api": 3000, // Management api
        "webhook": 3001 // Raw data api
    },
    "redis": {
        "host": "127.0.0.1", // Redis host
        "port": 6379, // Redis port
        "password": null // Redis password (optional)
    },
    "db": {
        "host": "127.0.0.1", // Database host
        "port": 3306, // Database port
        "username": "user", // Database username
        "password": "pass123", // Database password
        "database": "nodedb", // Database name
        "rootUsername": "root", // Root username
        "rootPassword": "pass123", // Root user password
        "charset": "utf8mb4", // Database character set
        "debug": true, // Show database debug logs
        "connectionLimit": 1000, // Database connection pool limit
        "noBackup": false // Do not make backups
    }
}

5.) Compile NodeJS files to Typescript in root folder.

tsc

5.) Run:

node dist/index.js

Credits:

About

Typescript/NodeJS identical replacement for RealDeviceMap https://github.com/realdevicemap/realdevicemap

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages