Code Monkey home page Code Monkey logo

med-logger's Introduction

Med Logger

Why I created this app

This project was created for one simple reason: To help my grandmother take her medications on time, so I came up with a full-stack solution to ensure this.

What this code sample does:

So the backend, does 2 things:

  1. Serves medication information to the front end (https://med-logger.herokuapp.com/)
  2. Sends notifications to a family telegram channel

A Telegram bot API is used to send notifications to the telegram channel if she forgets to update her medication status to "taken" in the website (hosted through heroku). This process repeats at 5 minute intervals for 1 hour until she takes her medication.

The backend runs this process during her medication times (morning, afternoon or night) using a cron job package in nodejs.

The front-end consists of medication-listing, functionality to add medication, mark as "taken", and remove medications.

What I learnt when I created this code sample:

I learnt how to use create a Telegram bot, connect it to a nodejs server with an API and send messages to telegram channels with it.

I also learnt how to set up cron jobs using a node cron package to automate tasks during set intervals and times.

I learnt how to deploy apps to heroku and set up continuous deployment from my github repo.

med-logger's People

Contributors

abu-lut avatar

Watchers

 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.