Skip to content

A simple electerm data sync server for Vercel, written with nodejs/ts, data stored in [cloud.mongodb.com](free tier is enough).

Notifications You must be signed in to change notification settings

electerm/electerm-sync-server-vercel

Repository files navigation

Vercel Electerm sync server

A simple electerm data sync server for Vercel, written with nodejs/ts, data stored in [cloud.mongodb.com](free tier is enough).

Use

fork this project to your own account or org and deployed to Vercel.com, put proper env in project env setting:(get mongodb url from [cloud.mongodb.com)

electerm-vercel-env-setting

JWT_SECRET=some_secret_very_complicated
JWT_USERS=username1,username2,xxxx,hhhh
DB_URL=mongodb+srv://yourusername:[email protected]/electerm_sync_custom_db_name?retryWrites=true&w=majority

electerm-vercel-sync

  • Set https://your-vercel-domain.vercel.app/api/sync as your sync server url in electerm sync form.
  • Set JWT_SECRET as your sync JWT SECRET in electerm sync form.
  • Set one of JWT_USERS as your sync User ID in electerm sync form.

Dev

npm i
npm i vercel -g
cp sample.env .env

## local dev
vercel dev

## deploy
vercel deploy

Sync server in other languages

License

MIT

About

A simple electerm data sync server for Vercel, written with nodejs/ts, data stored in [cloud.mongodb.com](free tier is enough).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published