Files
netstar-categorizer/README.md
2024-06-13 09:45:23 -03:00

1.2 KiB

UDP Server - netstar-categorizer

This project is a UDP server built with Node.js that processes incoming messages and returns categorized NetStar results in Zvelo pattern.

Prerequisites

  • Node.js (v12.x or higher recommended)
  • npm (v6.x or higher recommended)
  • NetStar inCompass SDK

InCompass SDK Setup

  1. The inCompass SDK requires Boost C++ Libraries. To install the libraries, run:
apt-get install libboost-all-dev
  1. To install the inCompass SDK, run:
dpkg -i gcf1-global_{SDK Version}_deb{Debian Version}-amd64.deb
  1. To daemonize the service, run:
cp -p /usr/local/gcf1/sbin/gcf1 /etc/init.d/
insserv gcf1
  1. Or, depending on the Debian version, run:
 systemctl enable gcf1

UDP Server Setup

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-directory>
    
  2. Install the dependencies:

npm install
  1. Create a .env file in the root of the project and add your environment variables. At a minimum, you should specify the PORT:
cp .env.example .env
PORT=3000

Running the Server

To start the UDP server, use the following command:

npm start

This will run the server and bind it to the port specified in your .env file.