Git Product home page Git Product logo

mycal's Introduction

myCal

Google Calendar CLI app extending the Go quickstart for Google calendar.

image

Prerequisite

  • Go minimum version 1.19

Setup

  1. Clone this repository
  2. Follow the environment instructions here to obtain the API credentials required.
  3. Rename your generated credentials as myCalAppCredentials.json . Rename .env.sample as .env and replace the value of MYCAL_CREDENTIALS_DIRECTORY with the path to the parent directory of your generated credentials file.

Note MYCAL_CREDENTIALS_DIRECTORY is also where the generated token will be stored. If this env is not set the current working directory will be used; this will have the side effect of needing to generate new tokens in each new directory where the myCal command is run for the first time.

Run

go run .

Run from any terminal

  1. Build the app

    go build
    
  2. Confirm the directory where the go app will be installed

    go list -f '{{.Target}}' // Example output: /Users/oredavids/go/bin/myCal
    
  3. Install the app

    go install
    
  4. Update your shell config file (e.g bashrc, .zshrc, etc)

    export PATH=$PATH:/Users/oredavids/go // Add directory, confirmed earlier, to your PATH variable
    export MYCAL_CREDENTIALS_DIRECTORY=/Users/path/to/credentials/directory // Where installed app can find your API credentials & store your token
    myCal // OPTIONAL - Run myCal automatically when new terminal window is opened
    

    Now that the app has been installed and configured you can run the executable anywhere, manually with:

    myCal
    

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.