google-calendar-push

module
v0.0.0-...-ee4a6e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2022 License: MIT

README

Google Calendar Push

Removes reminders from Google calendar placeholder events

Storyline

TL;DR: To make my life easier, I wanted to be able to block slots on my work calendar that correspond to events on my personal calendar. Regardless of this causing duplicate events to show up on my combined calendar app, which I can tolerate, what drove me crazy was having duplicate reminders.

I wanted to have silent placeholder events. Whenever I created an event on my work calendar with the title "Busy", any default reminders should be stripped off it.

Getting Started

Prerequisites
  • Go 1.18, but can theoretically work with older versions
  • PostgreSQL 13.6, but can theoretically work with older versions
Google OAuth Client
  1. Go to https://console.cloud.google.com/apis/credentials
  2. Create a new project, if you don't have one already
  3. Create a new "OAuth Client ID" credential
  4. Note down the client ID and secret
Dependencies
$ go mod download
Usage
  • Make sure you make your own copy of .env. Use .env-example for reference

    Environment Variable Default Description
    PORT 3000 Port for the server to listen on
    LOG_ENVIRONMENT "production" Any of "development" or "production"
    DATABASE_URL N/A Required. A PostgreSQL DSN
    Example: postgres://user:password@localhost:5432/db?sslmode=disable
    DATABASE_LOG_LEVEL "none" Any of "none", "error", "warn", "info", "debug", or "trace"
    AUTH_CLIENT_ID N/A Required. Check Google OAuth Client
    AUTH_CLIENT_SECRET N/A Required. Check Google OAuth Client
  • Run the server

    $ go run ./cmd/server
    

    or simply

    $ make
    

Development

Requires gin for hot-reloading

$ make dev

Roadmap

  • Add tests

Contributing

  1. Fork the project
  2. Create your feature branch
    $ git checkout -b feature/add-magic
    
  3. Commit your changes
    $ git commit -m 'Add some magic'
    
  4. Push to the branch
    $ git push origin feature/add-magic
    
  5. Open a pull request

License

Distributed under the MIT license. See LICENSE.txt for more information.

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳