Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.52 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.52 KB

Electerm sync server python

Build Status

A simple electerm data sync server with python.

Use

Requires python3

git clone git@github.com:electerm/electerm-sync-server-python.git
cd electerm-sync-server-python
pip install -r requirements.txt

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

python src/app.py

# 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

bin/test

Write your own data store

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

Sync server in other languages

License

MIT