Skip to content

Nat-Lab/webrs-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webrs-server

This is the server-side (i.e., backend) of nato internet services' webrs. For the client-side, check webrs-client.

Configuring

webrs-server takes a JSON file as configuration. Configurable fields are as below:

interface Configuration {
    host: string;
    port: number;
    entry_point: {
        path: string;
        args: string[];
    };
};

See config.json for example.

Building

You will need to have NodeJS ready before you can build the server.

$ git clone https://github.com/nat-lab/webrs-server
$ cd webrs-server
$ npm i
$ npm install -g typescript
$ tsc

Usage

You will need to run bin/main.js with sufficient permission to launch the program specified as your entry_point. For example, if you are using BIRD, you may want to do something like this:

sudo -u bird node bin/main.js config.json

License

webrs-server itself is distributed under UNLICENSE. Dependencies have their own licenses.