Git Product home page Git Product logo

vaccinechecknotifier's Introduction

vaccineCheckNotifier

This project aims to check availability of Covid vaccine slots in a neighbourhood and notify subscribers via email (preview) when it is available. This is a serverless and stateless code aimed to be running on google app script.

โš ๏ธ WARNING
The API fetch call of this code returns 403 error effectively making this project obsolete.

Feature Roadmap

This repository is no longer actively maintained and missing features such as unsubscribe will not be implemented. You can check out this website which effectively solves the same problem.

Motivation to use Google App script

Initially I planned to use Node JS as backend service for this project which would have worked fine but I would need to host it and maintain a database for it. Google sheets were enought for me as a database and not having to pay for hosting services for this project sounded appealing so I decided to used it as a backend service.

Why it doesn't work

Initially I thought API fetch was not working because of incorrect request headers being sent to server and I spent way too much time trying to fix it as exaclty same request was working from postman in my local development environment. After hours of trial and error I managed to isolate the problem and found that firewall at cowin website is blocking all requests which originated outside India and returned this. Since this project was intended to run at google servers and I can't control the location of those servers, there is no obvious way for me to make it work.

What does work

Many parts of this code work perfectly such as accepting responses from user and sending dynamically generated emails on a time event triggered function. They can be used to learn and get a deeper insignt into Google app script and develop skills. All code in this repo is freely available to everyone and can be used in different pojects.

Learning outcomes

Making this app was a great learning outcome for me as I not only got to work on a real world problem but had to do it in a small time frame to develop it. This is first time I used debugger fucntion by setting breakpoints and it was life changing for me. But, the most important lesson of all which I learnt was to test core functions of your app early in development stages so that you'll know this solution is actually viable.

License

This project uses MIT License.

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.