Skip to content

electerm/electerm-sync-server-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp Electerm sync server

Build Status

A simple electerm data sync server.

deps

Install Boost and Crow

Use

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

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

## install proper deps

## init deps
./scripts/init

## build
./scripts/build

## run
./scripts/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
# JWT_SECRET: your JWT_SECRET in .env
# JWT_USER_NAME: one JWT_USER in .env

Test

./scripts/test

Write your own data store

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

Sync server in other languages

License

MIT

About

electerm-sync-server-cpp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published