Development environment

Follow previous steps in Test, except the last one about sxs

Check that your system has a running installation of NodeJS

You should be able to execute

$ node -v
v24.4.c // example

Check the required NodeJS version for sxs:

node -e "console.log(require('./package.json').engines)"
{ node: '>= 23.*' }

If the installed version to not match the one required in package.json, install the right one.

Then,

$ git clone https://gitlab.com/dbmx/sxs.git
$ cd sxs
$ corepack yarn install

Create a .env file with the folowing content:

AMQP_URL="amqp://0.0.0.0:5672" 
AMQP_DBMX_EXCHANGE="dbmx" 
SERVER_PORT=7200 
CONFIG_URL="http://0.0.0.0:2011" 
MONGODB_URL='mongodb://0.0.0.0:27017' 
CLICKHOUSE_URL="http://0.0.0.0:8123"
DATA_BUCKET="data" 
MEMBER_DATA_BUCKETS="data-*" 
DEFAULT_MEMBER=mrox 
SERVICE_NAME='sxs' 
BUCKET_PROVIDER='minio'
MINIO_ENDPOINT="0.0.0.0" 
MINIO_PORT="10000" 
MINIO_SECRET_KEY="minioadmin" 
MINIO_ACCESS_KEY="minioadmin"
BUCKET_HMAC_KEY="minioadmin"
BUCKET_HMAC_SECRET="minioadmin"

Then run:

$ node src/server

Here it is, you have now a running sxs server installed from sources 🏆