Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.62 KB

README.md

File metadata and controls

55 lines (37 loc) · 1.62 KB

Nodejs Electerm sync server

Build Status

A simple electerm data sync server.

Use

Requires git/nodejs 16+/npm, recommend install nodejs/npm with nvm

git clone [email protected]:electerm/electerm-sync-server-node.git
cd electerm-sync-server-node
npm i

# create env file, then edit .env
cp sample.env .env

node src/server.js

# would show something like
# server running at http://127.0.0.1:7837

# in electerm sync settings, set custom sync server with:
# server url: http://127.0.0.1:7837
# JWT_SECRET: your JWT_SECRET in .env
# JWT_USER_NAME: one JWT_USER in .env

Test

# create env file, then edit .env
cp sample.env .env

npm run test

Write your own data store

Just take src/file-store.js as an example, write your own read/write method

Sync server in other languages

License

MIT