GithubHelp home page GithubHelp logo

calendarsync's Introduction

This is backend app exclusively, it has been build in node.js

Its goal is to keep restaurant google calendar updated To achieve that it connects to reservation API and map room availability. Based on this it calculates number of rooms sold. After that it checks status of google calendar and if there is any mismatch between prefetched API data it push it to calendar. If there is no entry of date mapped in API report it creates missing entry. This actions is scheduled every 10 minutes If there is more than 20 actions it sends email with list of updates to hotel email

Biggest issues on the way

  1. Roomer API doesn't have endpoint which gives room sold details on each date, it has only endpoint with result of availability. So to make app output correct data response from endpoint needed to be processed appropriately. Since out of order rooms decreased number of available rooms it wasn't sufficient to subtract number of available rooms from total rooms, so app collects data about out of order rooms and include them into final calculation

Cool things about it

  1. It automates process of manual update of calendar so it is more reliable tool for making schedule for staff and to estimate demand in given day - chef can make more accurate food order
  2. It connects with google calendar api with server to server oauth
  3. It send request to API every 10 minutes and send an email to user if there is more than 20 updates

calendarsync's People

Contributors

benedyktt avatar dependabot[bot] avatar

Watchers

James Cloos avatar

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.