Realm Object Server is a Node application that is distributed via npm. To help get you started quickly, we have a few different installation options. If you are already familiar with Node and NPM, we suggest using the manual install via npm. If not, we suggest using our quick start install via our own curl script.
These instructions detail the base install which is used for getting started and basic testing. Once it is time to move into a production environment, you will want to follow our enterprise architecture guidelines to support your application at scale.
We currently support the following operating systems:
We plan to add native support for Windows. In the meantime, you can run the server for development purposes via Docker.
The Realm Object Server utilizes websocket connections over TCP to synchronize data. This means that you will need to make sure your firewall allows TCP communication over whichever ports your ROS is configured to use. By default, this is port 9080 for HTTP traffic. We recommend securing your server by enabling HTTPs communication which is done over port 443.
The simplest method of installation is by using our install script, which will resolve all prerequisites for you:
curl -s https://raw.githubusercontent.com/realm/realm-object-server/master/install.sh | bash
// Ubuntu 16.04 (64 bit; 32-bit is not supported)//It is recommended that you install the server as a normal user.sudo apt-get updatesudo apt-get install build-essential libssl-devsudo apt-get install pythoncurl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.4/install.sh | bash// Force current session to know changes or logout and log back insource ~/.profilenvm install --ltsnpm install -g node-gyp
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.4/install.sh | bashnvm install --ltsnpm install -g node-gyp
//Install Node.js LTScurl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -sudo yum -y install nodejs//To compile and install native addons from npmsudo yum install gcc-c++ make
npm install -g realm-object-server
This will install the server globally which is the easiest way to try it out since it includes a CLI. For Linux, if you are installing as root (not recommended), you may need to add
--unsafe-perm to the
npm install commands.
Connections to the server are made via websockets which communicate (by default) over port 9080, so you'll need to be sure to open this port. The port number can be reconfigured within your server's index file. The simplest way to test connectivity is by using Realm Studio.
Upgrading the server is as simple as running an NPM install command within your ROS project
#specify specific version after the @npm install realm-object-server@latest
Having issues with your installation? We're here to help. Please contact us via our support channel. If possible, include the following information:
Steps that you followed during the installation
Relevant error messages and/or logs
Versions of NPM and Node
Operating system information
Not what you were looking for? Leave Feedback