Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@automerge/automerge-repo-sync-server

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@automerge/automerge-repo-sync-server

A very simple automerge-repo synchronization server. It pairs with the websocket client protocol found in `@automerge/automerge-repo-network-websocket`.

npmnpm
Version
0.2.2
Version published
Weekly downloads
24
-82.61%
Maintainers
4
Weekly downloads
 
Created
Source

Automerge Repo Sync Server

A very simple automerge-repo synchronization server. It pairs with the websocket client protocol found in @automerge/automerge-repo-network-websocket.

The server is an unsecured Express app. It is really just for demonstration purposes at this point; you probably don't want to use it for anything real yet. This isn't a great way to operate (or the only way) but it's a useful demonstration of what a client/server deployment might look like.

Setting up

Before getting started, make sure you've run yarn, and yarn build at the root of the monorepo. This will install all your dependencies and make sure the other libraries are compiled.

Run the sync server

yarn start:syncserver

Set up a sync-server on ubuntu

Set up basic firewall:

$ sudo ufw allow OpenSSH
$ sudo ufw allow http
$ sudo ufw allow https
$ sudo ufw enable

Install git:

$ sudo apt-get install git

Install node:

$ curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\
sudo apt-get install -y nodejs

Clone repo (may require setting up ssh keys to clone from github)

$ git clone git@github.com:automerge-repo/automerge-repo-sync-server.git

Build everything:

$ cd automerge-repo-sync-server
$ yarn build

Run a server:

$ PORT=<your preferred port> yarn start

Contributors

Originally written by @pvh.

FAQs

Package last updated on 27 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts