Backend Setup - sitechtimes/club-attendance-backend-v2 GitHub Wiki
Create a folder for all club attendance folder and sheets and paste the id of the folder into the .env
CLUB_ATTENDANCE_FOLDER_ID="FOLDER ID"
CLUB_DATA_SPREADSHEET_ID="DATA ID"
This .env value can be replaced if creating from a sheet that already exists in the club attendance folder.
Then run the script 'createSheetsFolder'
Command to run the script:
node build\middleware\setup\createSheetsFolder.js
wait for the following to be logged in the console
USER_DATA_SPREADSHEET_ID=17D0yPhx-nvYW-J5mKdbic8IZGY7BbIxaiSBM9BU_tNQ
MASTER_ATTENDANCE_SHEET=16D46fHvzMo2erQ46VEornPt_UBKdXarNNqqc7nkMqyo
FOLDER_META_DATA_SPREADSHEET_ID=1c6_YYtHZbpc1ub0xNUhXn-lO6V_LJ4O8183blsXgzXU
CLUBS_IN_ATTENDANCE=12asdPoyyhZpo-YwFQ6vQ9MqqYYLEn9cuTxUkzsAVL2A
CLUB_IMAGE_FOLDER_ID=1dNOA_K1v73MqADITCaYJ5YwYHWxmjskX
*THE ABOVE CONSOLE LOG IS ONLY AN EXAMPLE
paste this into the .env file replacing the previous key values that are in the doc only if setting up the backend for the first time.