Backend server for xSync
We recommend deploying xSync server in docker or kubernetes.
- IPFS-Upload-Relay: Please deploy your own IPFS-Upload-Relay server.
- Copy environment files from
deploy/env/.example
todeploy/env
- Edit environment files to match your requirements, like:
- Set
ETHEREUM_PRIVATE_KEY
to your operator's private key inworker.env
. - Set
IPFS_ENDPOINT
to your own IPFS-Upload-Relay server's URI (likehttps://upload-relay.example.ltd
). - Edit other fields in different files (like rsshub.stateful.env) for rsshub with platforms logged in
- Set
- Build services by
make build-docker
- Start services by
make prod-start
For more details, please refer to Makefile.
This server parse users' RSS feeds to structured data, and then post them on chain.
- Make sure you've installed both docker and docker-compose.
- Start deps by
make dev
- Edit
SUPPORTED_PLATFORM
incommon/consts/platform.go
, add target platform's basic information. - Create a new directory under
app/worker/platforms/
. - We need to implement 2 functions, one for account validate and the other for feed collect. For implementing details, please refer to other platforms.
- Call account validate func in
app/worker/rpc/jobs/validate_account.go
, and call feed collect func inapp/worker/mq/jobs/dispatch/collect_feeds.go
. - Time to test 🎉
If there's any further questions, please open an issue.