Skip to content

Generate an email reminder to take a medication at specific times every week

Notifications You must be signed in to change notification settings

jpke/medicationReminder_Portfolio

Repository files navigation

Medication Reminder App

Generate an email reminder to take a medication at specific times every week. Demo it here.

  • The app may take a few seconds to register, login or demo, since the app server is on a free heroku dyno that may need to wake up.

Motivation

This was an early fullstack project built with react and express in the fulltime Thinkful Web Development Bootcamp.

The objective was to create a simple scheduler, which generates an email at set intervals. This was achieved using node-schedule in Express to call mailjet.

##Technologies

Tech Description
React Javascript framework for single page apps
Redux Application state management for react
Express Server framework for Node
MongoDB No-SQL database
Mailjet Automated email generator

API

The server code can be found here

  • POST /user :: creates new user
  • PUT /user :: updates username or password
  • DELETE /user :: deletes user
  • GET /medication :: returns array of medication reminders associated with user
  • POST /medication :: creates medication reminder
  • PUT /medication :: updates medication reminder
  • DELETE /medication :: deletes medication reminder

Develop

To develop this app's front end, make sure you have node and npm installed, then:

  • clone the repo
  • cd into repo, then run npm install
  • start development server with npm start
  • navigate to http://localhost:3000 in your browser to access app

To develop this app's server side:

  • change rootUrl in src/actions.js to http://localhost:8080 (or other port if specified) in order to develop locally.

  • the server side is currently a submodule of a larger portfolio server

  • develop run the medication reminder express server locally:

    • clone, configure and start the app's express server
    • comment or delete app.use('/blog', blog) and app.use('/elearn', eLearn)
    • comment or delete files:
      • blog.js
      • box.js
      • eLearn.js
    • obtain Mailjet API credentials by signing up (for free)
    • add .env file, containing:
      • MAILJET_KEY :: your Mailjet application public key
      • MAILJET_SECRET :: your Mailjet application private key
      • ALERT_FROM_EMAIL :: email address you want to alert to be sent from
      • ALERT_FROM_NAME :: name you want email to appear sent from
      • DATABASE_URI :: connection to your mongo database 'mongodb://<database name>'
    • start server with node server.js
    • server will now run at http://localhost:8080 by default

Contributers
  • oshirodk
  • phc5
  • jpke

This app is built in create-react-app. It was derived from another build.

About

Generate an email reminder to take a medication at specific times every week

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published