Skip to content

About

A simple rust electerm sync server.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

Repository files navigation

中文版

Electerm sync server rust

Build Status

A simple rust electerm data sync server.

Use

git clone git@github.com:electerm/electerm-sync-server-rust.git
cd electerm-sync-server-rust

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

cargo run

# 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
# Then you can use http://127.0.0.1:7837/api/sync as API Url in electerm custom sync

# JWT_SECRET: your JWT_SECRET in .env
# JWT_USER_NAME: one JWT_USER in .env

Production Run

cargo run runs the server in debug mode. For production deployment:

# Build optimized release binary
cargo build --release

# Run the production binary
./target/release/electerm-sync-rust-server

Test

cargo test -- --test-threads=1

Write your own data store

Just take src/file_store.rs as an example, write your own read/write method

Sync server in other languages

https://github.com/electerm/electerm/wiki/Custom-sync-server

About electerm

Open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client(Linux, Mac, Windows, Android, HarmonyOS).

Besides mainstream Windows/macOS/Linux/Android, electerm also supports HarmonyOS, and older systems — Ubuntu 18, Windows 7, macOS 10+, and special Chinese Linux distributions such as UOS, Kylin, and LoongArch (both old-world and new-world), as well as RISC-V (riscv64) and PowerPC 64-bit little-endian (ppc64le) Linux.

Homepage / Downloads · Theme · Docker · Online demo · Android · HarmonyOS · Huawei AppGallery · Microsoft Store · Snap Store · deb repo · rpm repo

🌐 electerm online — Public free online electerm app
🤖 electerm AI — Free AI for electerm users
💻 electerm-web — Web app version running in browser (including mobile device)

License

MIT

About

A simple rust electerm sync server.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages