Backend code for Liderbord
Ensure you have the moralis cli, NEVER deloy the cloud functions by copy pasting them on the console.
npm install -g moralis-admin-cli
You can get the .evn file on notion, you might need to update your cloudfolder path
moralis-admin-cli watch-cloud-folder --autoSave 0
Please avoid using --autoSave 1
especially whe others are working on the project.
moralis-admin-cli watch-cloud-folder --moralisApiKey API_KEY --moralisApiSecret API_SECRET --moralisSubdomain SERVER_URL --autoSave 1 --moralisCloudfolder PATH