-
Notifications
You must be signed in to change notification settings - Fork 0
Server & Workiversaries #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Run `npm start` and navigate to localhost:3000 To generate token file, run `npm run token`
package.json
Outdated
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| }, | ||
| "dependencies": { | ||
| "dayjs": "^1.8.21", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lock
server.js
Outdated
| reportingDates, employeeFromRow, workiversariesByDates, workiversariesByMonth, | ||
| } = require('./workiversaries.js'); | ||
|
|
||
| const sheetId = '1aJOtfVhFacpWEpKifFzKegI0x49_rqbhiR0o3fPwneg'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably shouldn't be comitted
server.js
Outdated
| @@ -0,0 +1,32 @@ | |||
| const express = require('express'); | |||
| const { getSheetContent } = require('./sheets.js'); | |||
| const { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look into es6 imports
mmumby
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
|
For some reason, I only saw one of Adams comments before approving. Let's add the sheet Id to an env |
Download from Google Sheets
Add server with
/monthand/todayendpointsCalculate workiversaries from Sheets data