Code Monkey home page Code Monkey logo

drip-drop-send-sms's Introduction

Drip Drop Send SMS

Use

This repository was built for use with drip-drop-client (repo/live app) and drip-drop-api (repo). It is used, in conjunction with Heroku's Scheduler, to send sms messages to users.

How It Works

drip-drop-send-sms is built using Node.js. The file send-sms.js uses the node-fetch package to make a GET request to the Drip Drop API sms endpoint. It then iterates through the sms list to check if the reminder date is equal to the current date. If so, it uses the Twilio API to send a reminder message to the user. If a text is sent, the reminder date is updated so that the user will recieve another message when the plant needs to be watered again.

The send-sms.js file is not loaded within any of the three Drip Drop repositories. Rather, the repository is deployed on Heroku and is run using Heroku's scheduler add-on. Heroku Scheduler can be used to run jobs at a scheduled time interval (learn more about Heroku Scheduler here). The send-sms.js file is set up to be run, with the node send-sms.js command, once per day at 10:00 AM UTC, as can be seen in the image below.

heroku scheduler

The Drip Drop Project

Live App

A live version of the app can be accessed here.

To demo Drip Drop, log in with:

Summary

Drip Drop is a web application that reminds users to water their houseplants. Users can select the plants they have from a list of common houseplants. Each day, Drip Drop will check to see if any of the user's plants will need to be watered. If so, Drip Drop will send the user a sms message as a reminder. The goal of Drip Drop is to make it easier for users to remember when they should be watering their plants, in order to prevent fewer houseplant deaths caused by over or under watering.

Technologies Used

Front End:

  • ReactJS
  • jQuery
  • HTML
  • CSS

Back End:

  • Node.js
  • Express
  • PostgreSQL

APIs:

drip-drop-send-sms's People

Watchers

 avatar  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.