Track daily habits within a Slack channel.
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
.
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/<the-app-id>/edit
FOR SECURITY REASONS, YOU MUST NOT SHARE THE ITEM (especially with Edit permission) WITH OTHERS.
Create a file named .clasp.json
in the root directory of this repository, then register your app's ID as follows:
{"scriptId":"<the-app-id>"}
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.