Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.67 KB

README.md

File metadata and controls

58 lines (38 loc) · 1.67 KB

Java Electerm sync server

Build Status

A simple electerm data sync server.

Use

git clone [email protected]:electerm/electerm-sync-server-java.git
cd electerm-sync-server-java

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

## run
gradlew run

## build
gradlew build

# 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

gradlew test

Write your own data store

Just take src/main/java/ElectermSync/FileStore.java as an example, write your own read/write method.

Docker

https://github.com/Aliang-code/electerm-sync-server-java-docker

Sync server in other languages

License

MIT