A simple electerm data sync server for Vercel, written with nodejs/ts, data stored in [cloud.mongodb.com](free tier is enough).
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)
JWT_SECRET=some_secret_very_complicated
JWT_USERS=username1,username2,xxxx,hhhh
DB_URL=mongodb+srv://yourusername:xxxxx@cluster0.yyyyy.mongodb.net/electerm_sync_custom_db_name?retryWrites=true&w=majority
https://your-vercel-domain.vercel.app/api/sync
as your sync server url in electerm sync form.JWT_SECRET
as your sync JWT SECRET in electerm sync form.JWT_USERS
as your sync User ID in electerm sync form.npm i
npm i vercel -g
cp sample.env .env
## local dev
vercel dev
## deploy
vercel deploy
MIT