https://github.com/zk-phi/daily-habits-tracker
WIP track daily habits from within slack
https://github.com/zk-phi/daily-habits-tracker
gas slack
Last synced: 2 months ago
JSON representation
WIP track daily habits from within slack
- Host: GitHub
- URL: https://github.com/zk-phi/daily-habits-tracker
- Owner: zk-phi
- Created: 2021-07-01T04:08:16.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-01T04:08:42.000Z (almost 5 years ago)
- Last Synced: 2025-05-30T12:45:36.373Z (about 1 year ago)
- Topics: gas, slack
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.markdown
Awesome Lists containing this project
README
# habit tracker
Track daily habits within a Slack channel.
# Setup
## Install `clasp`
This app can easily be deployed to your Google Drive with `clasp` (an official Google Apps Script API client).
See the repository page (https://github.com/google/clasp) for install instructions.
After installing `clasp`, log-in to your Google account with `clasp login`.
## Deploy the app to your Google Drive
### Create an empty Google Apps Script with a Spreadsheet
In your Google Drive page, create a new item of the type `Google Spreadsheet` and open.
Then click `Tools > Script Editor` to create an empty Apps Script project associated to the sheet.
Copy the app ID (not sheet ID) in the URL:
```
https://script.google.com/d//edit
```
FOR SECURITY REASONS, YOU MUST NOT SHARE THE ITEM (especially with Edit permission) WITH OTHERS.
### Deploy the app
Create a file named `.clasp.json` in the root directory of this repository, then register your app's ID as follows:
```
{"scriptId":""}
```
After setting `scriptId`, you can use `clasp` to deploy the app.
```
clasp push # upload the code
clasp deploy # publish as a webapp
```
When the app is deployed, a public URL is given to the deployed app.
In the GAS app page, click `Publish` > `Deploy as web app` and you'll see the URL. The URL will be used to connect to Slack later.