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
npm i
npm i vercel -g
cp sample.env .env
## local dev
vercel dev
## deploy
vercel deploy
MIT