Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shmygol/google-apps-toggl-reports
https://github.com/shmygol/google-apps-toggl-reports
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shmygol/google-apps-toggl-reports
- Owner: shmygol
- Created: 2016-01-18T18:04:12.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-11T17:20:42.000Z (9 months ago)
- Last Synced: 2024-05-11T18:27:54.682Z (9 months ago)
- Language: JavaScript
- Size: 92.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Toggl.com Reports add-on for Google Sheets
## Install the dependences
Perform the command:
```
npm install
```## Development
### Prepare
To get the initial setup working for you, perform the following steps.
1. Get Google Drive Credentials like described in the [node-google-apps-script Documentation](https://www.npmjs.com/package/node-google-apps-script#1-get-google-drive-credentials)
2. Authenticate gapps like described in the [node-google-apps-script Documentation](https://www.npmjs.com/package/node-google-apps-script#2-authenticate-gapps)
3. Create a [new Google Spreadsheet](https://docs.google.com/spreadsheets/create), and copy the ID of the file. The file ID is found in the URL to the spreadsheet:
docs.google.com/spreadsheets/d/***DRIVE_FILE_ID***/edit#gid=123
4. Open the file *src/environments/dev/debug.local.config.js*, and replace DRIVE_FILE_ID with the ID that you copied.
5. Create a new standalone [Google Apps Script](https://script.google.com) project, and copy the ID of the script. The file ID is found in the URL to the script project:
script.google.com/a/macros/google.com/d/***DRIVE_FILE_ID***/edit
6. Perform the following commands:```
mkdir build
cd build
mkdir dev
cd dev
gapps init *DRIVE_FILE_ID*
cd ../..
gulp upload-latest --env dev
```7. Refresh your Apps Script project. You should now see a copy of some of the files from the local source location.
### To upload and test the code
1. Perform the following command to upload the changes:
```
gulp upload-latest --env dev
```2. Open the Apps Script project and make sure, that code is updated.
3. Select 'Publish' > 'Test as add-on...'