Code Monkey home page Code Monkey logo

daily-habits-tracker's Introduction

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/<the-app-id>/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":"<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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.