Giter VIP home page Giter VIP logo

alibeez-to-google-calendar-connector's Introduction

Alibeez-to-Google-Calendar Connector

Syncs leaves from Alibeez to Google Calendar.

How it works

The program needs permission from users to write to their calendars. Therefore, the work of the program is divided into two phases: an initialization flow where the program collects the permission of a user, and an update flow where leaves for all users are sync'ed up.

Initialization flow

  • User hits / with their browser, where they are invited to give permission to the program to make changes to their calendars.
  • If the user proceeds, the program completes the OAuth 2 dance and acquires some user information, including the necessary tokens to call the Calendar API.
  • The program pulls the active future leaves of the user from Alibeez and copies them over to Calendar.

Update flow

  • At regular intervals, the program pulls all leaves that have been updated since the previous update flow.
  • For leaves for which the user has given permission (i.e. tokens are known) the program either adds it to Calendar or removes it from Calendar, depending on its status.

How to setup the project for local development

  • Copy .env.example to .env then fill out .env with the required values. You may ask [email protected] for working values.
  • Run npm install to install dependencies.
  • Run npm start to run the app.

Note on changing the format and schema of persisted files

This program persists data using JSON files. Since files already exist in production, new versions of the program must be backward compatible with the format and schema of those files, unless there is a possibility and will to notify all users that they are required to go through the initialization flow again (which would persist new files).

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.