WIP - THE PACKAGE IS CURRENTLY UNDER DEVELOPMENT. SOME FEATURES MIGHT NOT WORK AS EXPECTED.
CLI to quickly launch upcoming Mentor session's Google Meet link and prefill mentee email in Session Claim form.
~$ csms
COMMANDS:
start Start upcoming mentor sesion
start --late Start nearest past mentor sesion
Note:
- Upcoming session is defined as the earliest session within 1 hour from now.
- Nearest past session is defined as the latest session within the past 1 hour.
- Create
.envfile incsms/
CALENDAR_EVENT_NAME="Mentor session event name on your Google Calendar"
GFORM_URL="Link to Session Claim form (end in /viewform"
GFORM_METEE_EMAIL_ENTRY="entryId of Mentee Email field on Session Claim form. Format: entry.xxxxxxxxxx (Inspect Session Claim form to find this)"
GFORM_COURSE_ENTRY="Same as above, but for course (class) field"
MENTOR_EMAIL="Your email"
MENTOR_GOOGLE_USER="Your Google user if you are using multiple Google accounts. Open Google Meet, select your mentor email account and find this number authuser param in the url "
-
Get Google Service Account key. Rename file to
credentials.jsonand put incsms/ -
Share your calendar to the Goolge service account
-
(Optional) Create
menteeEmails.jsonin incsms/if you have students who use different email accounts to register for the course and in Google Calendar mentor session events. Format:
{
"email_in_db@domain.com": "email_in_gcal@domain.com"
}- Install dependenices
npm install
- Build
npm run build
- Install package as global
npm install -g .
- Run CLI
csms start
- Add more error handlers
- Implement ESLint
- Write unit tests
- Add config commands
- Test in different OS