An open API service indexing awesome lists of open source software.

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

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.